How to Disable Image Captions Easily?

Posted in: Newspaper
Post count: 1

I converted my blog to the newspaper theme.

I download images from Photodune and use them as featured images.

These images come with captions from Photodune.

On my previous blog they didn’t show up, so I left them.

On this blog, they show up by default under the images, and I have 250 blog posts and I don’t want to go into each post and edit each image to remove the caption.

Any workaround?

Blog: http://www.dailygodpreneur.com/

Example: http://www.dailygodpreneur.com/a-lawsuit-against-me-helped-my-business-grow/ (see text under featured image)

Post count: 22421

Hello,

Well there is no simple way of only removing the captions on those particular posts. If you remove the captions you will remove them across the whole site, so that will mean there will be no captions shown on any image you upload. If you do not plan on using captions at all, then you can use this code to hide all captions:
.wp-caption-text{
display:none!important;
}

You can add the code in the theme panel->custom css box.
If you do plan on using captions in the future, then you will have to go in manually and remove captions for your images. Sorry

Thanks.

Post count: 25

That’s not good. We have over a thousand posts and the captions never used to appear under the featured images but now they do. Turning them off globally is not an option. I don’t suppose you can come up with an SQL query that will remove them from all images that appear as featured images but otherwise leave them alone?

They are ruining the appearance of our mobile site.

Post count: 22421

Hi,
If you only want the code to affect the featured image and leave the rest alone, you can use this code:
.td-post-featured-image .wp-caption-text{
display:none!important;
}

Now it will only remove the caption from the featured images.
Thanks.

Post count: 25

Excellent, thank you! Works a treat.

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