• Resolved sarsarheyworth

    (@sarsarheyworth)


    Hi, I’m having problems with the gallery captions. I can’t seem to centre it or make it size 13, like it is if I use the image captions. Can anyone please help me with some css to centre and size the gallery caption? Thankyou!!

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

Viewing 15 replies - 1 through 15 (of 15 total)
  • Hi @sarsarheyworth

    At first, thank you for your response and for choosing our theme.

    Please navigate to Dashboard > Appearance > Customize > Additinioal CSS section and add the CSS snippet below:

    .blocks-gallery-caption {
      font-size: 13px !important;
      text-align: center;
    }

    Kind Regards

    Thread Starter sarsarheyworth

    (@sarsarheyworth)

    Thankyou thankyou so much! I really appreciate it! All sorted, you are a legend!

    Thread Starter sarsarheyworth

    (@sarsarheyworth)

    actually if it’s not too much… could I please ask one more thing about the gallery captions… the spacing (between the caption text and the bottom of the image) is bigger in the gallery caption vs the image caption.

    would you happen to have any css that might make the gallery caption be the same spacing below the image as it is for the image captions? thankyou!

    Hi @sarsarheyworth

    Please share the direct link to the page where the issue appears and we will check for the possible solutions.

    Kind Regards

    Thread Starter sarsarheyworth

    (@sarsarheyworth)

    sorry it’s https://nomadornothing.com/gallery-block-captions/

    thankyou very much!

    Hi @sarsarheyworth

    Please navigate to Dashboard > Appearance > Customize > Additinioal CSS section and add the CSS snippet below:

    .wp-block-gallery .blocks-gallery-item figcaption {
      padding-top: 30px;
    }

    Kind Regards

    Thread Starter sarsarheyworth

    (@sarsarheyworth)

    Hi, thankyou so much that did indeed make the spacing the same however I was hoping to make the gallery caption closer rather then the image captions further away. Is it possible to make the gallery caption have less space/padding between it and the images? Many thanks!

    Hi @sarsarheyworth

    We increased the space between the gallery and the content if you remove the snippet it will be the same as it was, here are the screenshots for more clarifications, before snippet: https://nimb.ws/eiaBTS after snippet: https://nimb.ws/pljnhF

    Kind Regards

    Thread Starter sarsarheyworth

    (@sarsarheyworth)

    Hi, I really appreciate your help, thankyou so much but that caption in the screenshots is not the one that I need to modify. The caption that needs modifying is below the first gallery on the page which has 2 images but only 1 caption (it’s a gallery caption, not an image caption).

    I want to move the gallery caption so it is closer to the image (like the same spacing it would have from the image if it was an image caption).

    Hi @sarsarheyworth

    Please navigate to Dashboard > Appearance > Customize > Additinioal CSS section and add the CSS snippet below:

    .blocks-gallery-caption {
      line-height: 1px;
    }

    Kind Regards

    Thread Starter sarsarheyworth

    (@sarsarheyworth)

    Thankyou very much, that definitely helped and moved the gallery caption closer. But is there any way to get it even closer so it’s the same distance from the content as an image caption?

    Although I’m not 100% I think the gallery caption is so far from the content in case you want to have both an image caption and a gallery caption. But for me I don’t need both, so is it possible to make the gallery caption be as close to the content as if it were an image caption? I really appreciate all the time you’ve taken to help me and if this is as close I can get it, that’s ok. I’m very grateful for all your help.

    Hi @sarsarheyworth

    Please insert this snippet too:

    .blocks-gallery-grid {
      margin-bottom: 0px !important;
    }

    Kind Regards

    Thread Starter sarsarheyworth

    (@sarsarheyworth)

    Wow, thankyou so much! That is perfect, thanks so much for your time and expertise!

    You are welcome, feel free to contact us anytime.

    Kind Regards

    Theme Author WP Royal

    (@wproyal)

    Hi,

    If you have any other Questions feel free to open a new Forum Support Topic and we will do our Best to help you.

    Kind Regards,
    Nick

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘gallery caption centering’ is closed to new replies.