Jump to content

Product name is messed up by css

Go to solution Solved by Lesum,

Recommended Posts

I used a shadow text css for my home page, 

h1 {color:#eee; text-shadow: 1px 1px #111, 2px 2px 2px #000, 1px -1px #111, -1px -1px #111,2px 2px 2px #000, 2px -2px #111, -2px -2px #111,-2px -2px 2px #000, 2px 2px #111}

As you can see I used "h1" and then it effected my product names (in picture), is there a way to make it only on home page? is there another option than "h1" to shadow my home page title? Is there a way to single out my product title and use code to take off the shadow text?

Thank you all for your help. 


Screenshot 2024-07-06 at 5.24.18 PM.png

Link to comment
  • Replies 1
  • Views 151
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

  • Solution

@Luke1 To apply the shadow effect only on homepage, you can try adding this code in Custom CSS

.homepage h1 {
text-shadow: 1px 1px #111, 2px 2px 2px #000, 1px -1px #111, -1px -1px #111,2px 2px 2px #000, 2px -2px #111, -2px -2px #111,-2px -2px 2px #000, 2px 2px #111;


If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

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.