Site logo

Archived topic

Image caption

9 replies · Started by Killian on May 13, 2017

Viewing posts 1–10 of 10

I want to add an image with its caption to a page.
On a page, I am using siteorigin page builder; in a text widget I have added


<img src="http://artobatours.com/image/ar171035-rock-art-ramon-besso-hunters-cow-1r.jpg" />

which I hoped would bring in the image and automatically add a caption. Should it? http://artobatours.com/

If you can use shortcode in those page builder widget then the way that link suggested should also work.

It's still using the HTML <figure> from the code stand point but then you should be able to use .wp-caption-text.

It doesn't appear to be working for me. In css I am using

.wp-caption-text { font-size: 10px !important; color: red !important; 
}

In the page builder text box I am using


<img src="http://artobatours.com/image/ar171035-rock-art-ramon-besso-hunters-cow-1r.jpg" /> 
(caption shortcode) the caption(/caption shortcode) (this forum is reading [ as code so I've shown it as brackets)

But if I view the source code I see the caption shortcode is being changed to p


<p><img src="http://artobatours.com/image/ar171035-rock-art-ramon-besso-hunters-cow-1r.jpg" /><br />
 the caption</p>

Thanks, that works.

Glad I could help!

This archived topic is closed to new replies.