Jump to content

Meta (image body) not showing on galleries on mobile

Go to solution Solved by martindrake81,

Recommended Posts

Hi 🙂

I'm trying to force text to display over images in a gallery block, slideshow, on mobile.
The text is in the body/description area of each individual image. I chose this (and left the title blank as the text is already styled a little smaller and subtle). Tile and description are set to show at 'bottom' in the default Squarespace design settings, rather than bottom left, as this showed it without the semi-transparent background. 

I tried to use a bit of CSS I found, but this displays the text halfway up the image. I want it anchored bottomed left over the image.

This is the code I am trying:

/* 7.0 Gallery caption mobile */
@media screen and (max-width:900px) {
	.sqs-gallery-block-slideshow .slide.loaded .meta {
    display: block !important;
    left: 0 !Important;
    top: 100px !important;
    width: 100% !Important;
max-width: 100% !important;margin-left: 0 !important;}
.sqs-gallery-block-slideshow .meta .meta-title {
    line-height: 20px !important;
}
.meta-inside {
    padding-top: 0 !important;
}
.sqs-gallery-block-slideshow .slide.loaded .meta {
    height: auto !Important;
}}

 

(not a coder)
Thanks in advance!

Screenshot 2024-05-20 at 07.49.35.png

Link to comment
8 hours ago, martindrake81 said:

Hi 🙂

I'm trying to force text to display over images in a gallery block, slideshow, on mobile.
The text is in the body/description area of each individual image. I chose this (and left the title blank as the text is already styled a little smaller and subtle). Tile and description are set to show at 'bottom' in the default Squarespace design settings, rather than bottom left, as this showed it without the semi-transparent background. 

I tried to use a bit of CSS I found, but this displays the text halfway up the image. I want it anchored bottomed left over the image.

This is the code I am trying:

/* 7.0 Gallery caption mobile */
@media screen and (max-width:900px) {
	.sqs-gallery-block-slideshow .slide.loaded .meta {
    display: block !important;
    left: 0 !Important;
    top: 100px !important;
    width: 100% !Important;
max-width: 100% !important;margin-left: 0 !important;}
.sqs-gallery-block-slideshow .meta .meta-title {
    line-height: 20px !important;
}
.meta-inside {
    padding-top: 0 !important;
}
.sqs-gallery-block-slideshow .slide.loaded .meta {
    height: auto !Important;
}}

 

(not a coder)
Thanks in advance!

Screenshot 2024-05-20 at 07.49.35.png

Can you share your URL so I can check it?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace
🚀 Learn how to rank new pages on Google in 48 hours!

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
26 minutes ago, martindrake81 said:

Thank you 🙂 ....

https://www.madstories.love/about

Sorry, I thought it was included!

 

This code makes the text move up on mobile

image.thumb.png.68fa7db6e6cb940f71ec5d96ce36156a.png

You can try the following code to overwrite it

@media screen and (max-width: 900px) {
  #block-450ad8b012331041bce3 .slide.loaded .meta {
    top: unset !important;
  }
}

Let me know how it works on your side

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace
🚀 Learn how to rank new pages on Google in 48 hours!

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
  • Solution
Posted (edited)

Brilliant! Thank you. That line is actually in the original custom CSS I added, so if I just delete that line it seems to work.
 

DELETE:
    top: 100px !important;

TO GET:

/* 7.0 Gallery caption mobile */
@media screen and (max-width:900px) {
    .sqs-gallery-block-slideshow .slide.loaded .meta {
    display: block !important;
    left: 0 !Important;
    width: 100% !Important;
max-width: 100% !important;margin-left: 0 !important;}
.sqs-gallery-block-slideshow .meta .meta-title {
    line-height: 20px !important;
}
.meta-inside {
    padding-top: 0 !important;
}
.sqs-gallery-block-slideshow .slide.loaded .meta {
    height: auto !Important;
}}

Edited by martindrake81
mistake
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.