Avoid description of image caption

Posted in: Newsmag
Post count: 114

Hi,

how can I avoid the description of the image caption at the post’s main image?

Take a look for an example here: example

Best regards,
Luke

Post count: 35449

Hi,
the only solution to remove the caption is to use a custom css. If you want I can make the code for you, but I’ll need a link to the post were you have a caption displayed.
Thank you!

Post count: 114

Hi Calin,

this would be great.

The caption is displayed at the main image of each post, for example https://www.eronite.com/july-johnson-interview/

Thank you!

Best regards,
Luke

Post count: 35449

Hi,
Please use this custom css
.td-post-featured-image .wp-caption-text{
display: none;
}

Set this code in the theme panel > custom code> custom css – https://i.imgur.com/ScQSSOe.png
I hope this will help you!

Post count: 114

Hi Calin,

thank you!

Best regards,
Luke

Post count: 114

Hi again,
how can I avoid the image caption of a specific image?
Is this correct?

img {
image:https://cdn.domain.com/image.jpg
.wp-caption-text
display: none;
}

Thanks in advance and best regards,
Luke

Post count: 35449

Hi,
I’m not sure if that code is ok, you should try this one
img[src="https://cdn.domain.com/image.jpg"] + .wp-caption-text {
display: none;
}

Thank you!

Post count: 114

Hi Calin,

it works, thank you.

Best regards,
Luke

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