Featured Image Caption

Posted in: Newspaper
Post count: 44

Is there a way or a code that I could add so that I could add the Images Caption to the featured image at the top of an article??? I don’t know anything about PHP, so i don’t even know how you would go about calling for it. I could write the CSS to style it and place where I want it though. This is what I would like to do if it would be possible….

Post count: 44

I found that the caption was actually just hidden. So I was able to unhide it and style it and get looking just like I wanted.

The CSS that I used:

.td-post-template-3 .td-post-header-holder .wp-caption-text {
display: block !important;
float: right !important;
margin-right: 10px;
padding-bottom: 10px;
}

.td-post-featured-image figcaption.wp-caption-text {
background: transparent !important;
color: #fff !important;
margin-top: -27px;
margin-bottom: 0;
position: relative;
z-index: 1;
}

/*** Hiding it on Mobile ***/
@media (max-width: 767px) {
.td-post-template-3 .td-post-header-holder .wp-caption-text, .td-post-featured-image figcaption.wp-caption-text { display: none !important; }
}

Maybe there is another way to do it, but this seems to be working, and the only way that I could figure out how to do it.

Post count: 22421

Hello,
The caption was hidden with css as a design choice. Your method seems to work fine. Css is pretty straight forward so there is no other “more elegant way”.
Thank you!

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