[Resolved] Making all image and gallery captions centered

Home Forums Support [Resolved] Making all image and gallery captions centered

Home Forums Support Making all image and gallery captions centered

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1426830
    Michele

    I’m using this, and it works for captions under images and the individual images in a gallery.

    .wp-block-image figcaption {
        font-size: .8em;
        margin-top: .25em;
        margin-bottom: 1.25em;
        text-align: center;
        }

    However, I cannot seem to center align the caption that appears under an entire gallery.

    Note that this is not on my live site in the URL below — I’m working on a staging site. See screenshot https://www.dropbox.com/s/km4fypy7hda1c3z/captions-staging.png?dl=0

    #1426839
    Leo
    Staff
    Customer Support

    Hi there,

    Any chance you can provide the link to your staging site so we can see the issue live?

    Thanks 🙂

    #1426891
    Michele

    Hi Leo,

    See if this works. Note that to be able to view https://staging.ucsflibrary.flywheelsites.com/news/test-captions/ you will have to proceed (after the unsafe warning) and enter the following:
    flywheel
    festive-giraffe

    #1426897
    Leo
    Staff
    Customer Support

    Try this:

    figcaption.blocks-gallery-caption {
        margin-left: auto;
        margin-right: auto;
    }
    #1426945
    Michele

    Thanks! That worked.

    #1426965
    Leo
    Staff
    Customer Support

    No problem 🙂

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