Jump to content

change background color on specific index page

Recommended Posts

Does anyone know how to change the background color on a specific index page? I'm able to change the background color on the individual page using:

.collection-[id] #siteWrapper {
background-color:#ccc !important;

However, when viewing this page as part of an index, it defaults back to the original color. This is using the Hayden template.

Link to comment
  • Replies 11
  • Views 11.8k
  • Created
  • Last Reply
  • 1 year later...
  • 2 months later...
  • 8 months later...

YASSS!!! Thank you so much! This post needs to be bumped up higher, and probably deserves a blog post or tutorial or something. Here's the code I used:


 .collection-type-index #who-we-serve {
 background-color: #e8eddb, !important;
}

@csmith333 How did you know to target .collection-type-index ? I don't remember seeing that anywhere when I was looking at the code using Google dev tools. Is there some super secret master list of all Squarespace selectors somewhere?

Link to comment
  • 2 years later...
On 2/25/2021 at 1:15 AM, sequoiac said:

And ferret-drum-ndgp.squarespace.com/services is the index I'm talking about. @bangank36

which section you want to change color and the color code you needed?

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
22 hours ago, bangank36 said:

which section you want to change color and the color code you needed?

Most of the sections have color changes.

 

#pe-class {

  background-color: #E5E2DA;

}

#coaching {

  background-color: #E9C262 !important;

}

#type-confident{

  background-color: #8D623F !important;

}

#ewe{

  background-color: #C883A3 !important;

}

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.