Jump to content

Trying to create custom css for banner slideshow titles to have a black shadow behind the text

Recommended Posts

Hello! I'm new to coding, and I'm trying to have the titles/text overlayed on my photo slideshows have a black shadow behind the title text so it can better stand out over my images. I thought this was the right code but it doesn't appear to be changing my text at all and adding a shadow: 

/* Apply text shadow effect to banner slideshow image titles */
.sqs-gallery-block-slideshow .slide-meta .slide-title {
  text-shadow: 2px 2px 2px black; /* Adjust the values as needed */
  color: white; /* Set the text color */
}

Thank you in advance!

Screenshot 2023-07-11 at 10.19.40 AM.png

Link to comment

That is a code for a gallery block but you appear to be using an Auto Layout section. 

Link to the site please and we can help properly.

Work With Me 🖥️💻📱

Please remember to tag me so that I get a notification and respond to your help requests.

If my answers have helped you, please drop a like and mark my answer as best to help other users find solutions quickly.

You can also thank me or make requests by buying me a coffee . (Caffeine fuels me to take more requests)

For Squarespace Tips & Tricks, visit @squareskills (Youtube 📺 Tutorials)

For Premium and FREE plugins, visit Squareskills (Plugin Store) 🧩

Some links may be affiliate/referral links.

Link to comment

Use:

/*Add shadow to text on Auto Layout Gallery*/
#sectionid h2.list-item-content__title.preFade.fadeIn {
    text-shadow: 2px 2px 2px black;
}

 

Work With Me 🖥️💻📱

Please remember to tag me so that I get a notification and respond to your help requests.

If my answers have helped you, please drop a like and mark my answer as best to help other users find solutions quickly.

You can also thank me or make requests by buying me a coffee . (Caffeine fuels me to take more requests)

For Squarespace Tips & Tricks, visit @squareskills (Youtube 📺 Tutorials)

For Premium and FREE plugins, visit Squareskills (Plugin Store) 🧩

Some links may be affiliate/referral links.

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.