• Hi,

    I want to be able to turn off image captions, i.e., not show the caption of an image even when there is a caption assigned to the image.

    My Crio site has a FooGallery and the images therein have captions because I need them in the lightbox (changing FooGallery to use something other than captions requires messing around with the PHP which is way above both my comfort and competence).

    I also want to use the same images elsewhere in the site and I believe it is best practice to use the same file for each occurrence of the same image, i.e., I should use the same image for the FooGallery and my other pages.

    This means that the caption for Image A shows in the FooGallery lightbox (which I want) but also shows on the other pages that use Image A (which I don’t want).

    So how do I stop my site from displaying image captions on all pages (assuming that FooGallery will continue to do its thing whatever settings I have for the rest of the site)? I’ve looked everywhere I can think of but can’t find any clues.

    Thanks,

    Andy

Viewing 1 replies (of 1 total)
  • Hi @pippamac, thanks for your question.

    To prevent image captions from displaying on all pages except within FooGallery, you can use custom CSS. This will hide the captions globally on your Crio site while allowing FooGallery to display them as needed. To do this, log in to your WordPress dashboard and navigate to Appearance > Customize. In the Customizer, go to Additional CSS. I’m not sure of your exact setup but some like the following should do the trick:

    .wp-caption-text,
    .gallery-caption {
    display: none !important;
    }

    After adding the CSS, click the Publish button to save your changes. This CSS targets the default WordPress caption classes, hiding them on all pages while allowing FooGallery to handle captions within its own lightbox functionality.

    After applying the custom CSS, review your site to ensure captions are hidden as desired. Additionally, verify that FooGallery is configured correctly to display captions in the lightbox.

    I hope this helps @pippamac , if you need further assistance or have additional questions, feel free to reach back out.

Viewing 1 replies (of 1 total)

The topic ‘Hide Image Captions’ is closed to new replies.