• I’m trying to get the image caption to sit below the image and found this CSS code, however the relative position keeps changing the size of the image but without it the caption is in the wrong place on some of the pages. Please help!

    .wp-block-gallery .blocks-gallery-item figure {
        flex-direction: column;
    }
    
    .wp-block-gallery .blocks-gallery-item figcaption {
        position: relative;
        bottom: auto-flow;
        width: 100%;
        max-height: 100%;
        overflow: auto;
        padding: 10px 0 20px 0;
        color: #484848;
        text-align: justify;
        font-size: 15px;
        background: linear-gradient(0deg,rgba(0,0,0,0),rgba(0,0,0,0) 0%,transparent);
    }

    Also any idea how to disable CSS for a particular page?

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

Viewing 1 replies (of 1 total)
  • How about adding something like this to the Custom CSS?
    (you may need to tweak the color of the a element more)

    .blocks-gallery-grid .blocks-gallery-image figcaption {
        color: #000;
        background: none;
    }
    .blocks-gallery-grid .blocks-gallery-image img {
        padding-bottom: 40px
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Caption under gallery image without affecting image size’ is closed to new replies.