Jump to content

Changing the Background Color of an Index Section

Recommended Posts

Site URL: https://lakerenfaire.com/virtual-faire/

Ciao ragazzi!

I am trying to change the background and button color of page within an index. This should be very simple css, but I am not getting seeing the change.

Here is my code:

<style>
  .collection-type-index #education-links {background: #309ed9 !important;}   
  #block-3a71d41191937304e6bb .sqs-block-button .sqs-block-button-element--large {background: #495fab !important;} 
</style>

Any help is appreciated. 

Link to comment
  • Replies 3
  • Created
  • Last Reply

Was able to get this to work after search the site more in depth for coding that I previously applied to another section. I should note that this code did not work when placed on the page in Advanced>Code Injection and only worked when put in Design>CustomCSS.

Here is the code that worked for the background color and the various text contained in that section:

//changes the color of the section background
#content #education-links-section {
	background-color: rgba(48, 157, 216,1) !important;
	color: white;
}
#content #education-links-section h1{
  	color: white !important;
}
#content #education-links-section h2{
  	color: white !important;
}
#content #education-links-section a{
  	color: white !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.