Don't quite get html in captions :-/

Page: 1

Author Post
bill scheider
I'm trying to add a three line caption to images using html and can't figure out where I'm stuck really. This works fine and gives me the first line in Bold:

<a href="" rel="floatboxSwallow" rev="caption: `&lt;strong&gt;Karen Swallow&lt;/strong&gt;`"><img src="images/swallow2small.jpg" alt="Karen Swallow" /></a>

What I'd like is this structure:
[Artist's name, Bold]
[Title of painting, italics]
[Media Type, normal text]

Is this possible? If so, can someone help or point me in the right direction? I've been over the demo page a few times and through the instruction doc but just can't figure it out! How dense am I? :-)

Registered: Aug 2008
Posts: 3382
I am so pleased to hear that you read the docs! Thank you!!! :D
The last few days of support have driven me nuts with folks who clearly have not done that. (A few on the forum, and some by direct contact.)

There's no magic to html in the caption. Just get the html doing what you want to outside of floatbox, then stick it in the caption option, as you did, and escape the toxic html characters, as you did.

Something like:
<strong>Artist's Name</strong><br />
<em>Title of painting</em><br />
Media Type

Which, when escaped and put into the caption option, becomes:
caption:`&lt;strong&gt;Artist's Name&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;Title of painting&lt;/em&gt;&lt;br /&gt;Media Type`
bill scheider
Well that was easy! I thought I had tried that but I guess I misspelled or mistyped something along the way.

Thanks so much for taking the time.

Page: 1