• Hi everyone,

    I used this code (copied from here) to suppress captions in gallery previews altogether. although in a very crude way:

    // Gallery captions
    
    .wp-block-gallery .blocks-gallery-item figure {
        flex-direction: column;
    }
    
    .wp-block-gallery .blocks-gallery-item figcaption {
        font-size: 0px;
    }

    What would be a more appropriate way of doing this? I’m not sure how I can find all the possible parameters in the documentation for .blocks-gallery-item figcaption. Can you direct me to the right documentation?

    thanks, geb

    • This topic was modified 4 years, 9 months ago by gebseng.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    It’s possible to strip out captions as they are output with “the_content” filter in PHP, but hiding it with some CSS tricks is really a better solution even if it seems crude. I usually just display: none; whatever needs to be hidden, but any CSS that does the job is fine.

    I’m unclear what the possible parameters would have to do with hiding the resulting captions.

    Thread Starter gebseng

    (@gebseng)

    thanks a lot!

    The question about the possible parameters is a more general one, since I can’t find the ressources for that. For example, if I want to know more about a Linux command, I can easiily look up the according manpage. Is there something similar for CSS?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Suppress Gallery Captions’ is closed to new replies.