Jump to content

Modify the padding around overlayed image captions in a gallery slideshow, squarespace 7.0

Go to solution Solved by Beyondspace,

Recommended Posts

Hi,

I am trying to reduce the amount of padding around my image descriptions that are shown as an overlay within a gallery block, set to display as a slideshow. Mostly the part that I've circled in red in the screenshot, but it would be great if I could reduce the padding overall.

I've also written custom CSS based on other posts in this forum that has got my background opacity set to 0.8 correctly, but the code that sets the opacity of the meta-description is not working.

//Gallery block caption styling
.sqs-gallery-block-slideshow .meta .meta-inside {
 background: #000000;
 opacity: 0.8;
}
.sqs-gallery-block-slideshow .meta .meta-description p {
 color: white;
  opacity: 1;
}

We are running 7.0 on the brine template, you can see the page in question here https://www.biocommons.org.au/home-copy

@tuanphan you seem to have solved lots of these types of issues, any chance you know how to fix this one?

 

Thanks!

 

Screenshot 2024-05-07 at 3.52.47 PM.png

Please tag or quote me in any responses otherwise I will not be notified.

My website: https://www.biocommons.org.au

Link to comment
  • Solution
8 hours ago, PatrickCapon said:

Hi,

I am trying to reduce the amount of padding around my image descriptions that are shown as an overlay within a gallery block, set to display as a slideshow. Mostly the part that I've circled in red in the screenshot, but it would be great if I could reduce the padding overall.

I've also written custom CSS based on other posts in this forum that has got my background opacity set to 0.8 correctly, but the code that sets the opacity of the meta-description is not working.

//Gallery block caption styling
.sqs-gallery-block-slideshow .meta .meta-inside {
 background: #000000;
 opacity: 0.8;
}
.sqs-gallery-block-slideshow .meta .meta-description p {
 color: white;
  opacity: 1;
}

We are running 7.0 on the brine template, you can see the page in question here https://www.biocommons.org.au/home-copy

@tuanphan you seem to have solved lots of these types of issues, any chance you know how to fix this one?

 

Thanks!

 

Screenshot 2024-05-07 at 3.52.47 PM.png

Do you mean something like this?

image.thumb.png.b1bc8f96dc68a902811a6f89f4639df9.png

Try adding to custom CSS

.sqs-gallery-block-slideshow.sqs-gallery-block-meta-position-bottom .meta-inside {
  padding: 20px 15px;
}

Let me know how it works on your site

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
On 5/8/2024 at 5:06 AM, PatrickCapon said:

@Beyondspace that's perfect, thanks! How did you figure out what the correct code was to use to target that box in particular? As in how did you know I needed to use this part 

.sqs-gallery-block-slideshow.sqs-gallery-block-meta-position-bottom .meta-inside

 

You can check them on the dev tool of browser

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.