(This is just a documentation note that might be added somewhere.)
Because of the way the filter is coded, it's possible to add additional styles besides left, right and center that can be invoked by the align attribute. They just need to be prefixed with "caption-". For instance, if you want a left-clearing image, in some CSS file you load, add:
div.caption-left-clear {
float: left;
clear: left;
margin: 10px 10px 10px 0;
}and then you can do:
[caption align="left-clear"]...[/caption].
I found this very handy.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1413448-caption-filter-arbitary-class-documentation-1.patch | 486 bytes | populist |
Comments
Comment #1
populist commentedHere is a patch that adds this to the README.txt
Comment #2
kmontyThanks dhalbert for pointing this out! While your suggestion is definitely helpful--and we hope other people see this looking for a similar solution--we think including this in the README.txt might serve to confuse people.
Comment #3
orizonmedia commentedOn my side, i needed to add some extra class for [caption align=""] attribute for wordpress post migration. WP use align="alignleft" wich break in the wysiwyg editor if not find in the caption-filter.css. This «how to» is a must see for anyelse who need caption filter compatibility between CMS.