Position caption inside feat. image

Posted in: Newspaper
Post count: 22

Hi

I would like to position the caption inside the featured image in the post (not below as it is now). I followed the instructions in another post (https://forum.tagdiv.com/topic/featured-image-caption-post-style-4) and updated single_template_6 in order to have the caption. Worked, but it places it below the image, not in it.

Hope you can help 🙂

Site is: wefrb.easysite.dk

See this screenshot: https://www.dropbox.com/s/a9cr4f3x47uwcsg/Sk%C3%A6rmbillede-2018-02-05-kl.-14.17.33.png?dl=0

Post count: 20688

Hi,

I believe you followed this topic as well
https://forum.tagdiv.com/topic/featured-image-show-caption/

I have entered the code provided there like this, in single template 6
https://www.screencast.com/t/0fveK0lY13
This will position the caption directly in the locations you want
https://www.screencast.com/t/iBwHGEgVJI
You can use the CSS code from the same topic to style the caption, or create your own styling.

Thanks

Post count: 22

Thanks Simion, that works fine on desktop. On mobile the caption doesn’t show and the category tag gets pulled right. Do you have a fix for that?

Post count: 20688

On mobile the category tag is displayed like this
https://www.screencast.com/t/oBD3DLNgzF
The caption is not visible until you use the code provided in the same topic
https://www.screencast.com/t/boGJ1fVS
Make modifications to it if you want to, then enter it in Theme panel->Custom CSS

.td-feat-image-caption {
color: #ffffff;
margin-top: 10px;
margin-left: -5px;
padding: 10px;
}

Thanks

Post count: 22

Works perfectly. Thanks

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.