[Resolved] Editing gallery captions

Home Forums Support [Resolved] Editing gallery captions

Home Forums Support Editing gallery captions

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1408699
    Joey

    I have my captions modified with the CSS below but it only affects captions to regular images, not the gallery caption.

    .wp-block-image figcaption {
        padding-right: 10px; 
    	padding-left: 5px;
    	text-align: right;
            font-size: 15px;
    	font-style: italic;
    	color: grey;	 
    }

    I don’t care about the captions inside the images of the gallery, just the caption below the entire gallery, where it says “Book covers from Dune, the Hobbit, and The Stand.” on the last gallery of my page. I tried .wc-gallery .gallery-caption but no effect. Looks weird when some captions are styled and some aren’t. Thank you.

    #1408714
    Leo
    Staff
    Customer Support

    Hi there,

    Try adding this CSS as well:

    figcaption.blocks-gallery-caption {
        padding-right: 10px;
        padding-left: 5px;
        font-size: 15px;
        font-style: italic;
        color: grey;
        margin-left: auto;
    }
    #1408768
    Joey

    That’s weird how text-align: right; doesn’t work and you have to margin-left: auto

    It works well, thanks a lot for your help and for replying so quickly.

    #1409458
    Leo
    Staff
    Customer Support

    No problem 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.