Jump to content

How do I make the footer different colors for each page?

Recommended Posts

Hi,

I've tried to use the codes below to change the color of the footer for each of my pages. The code works, however, when I go out of edit-mode and visit the website the new color is not discplayed. Does anyone know how to fix it?

 

Many thanks in advance!

 

<style>
  footer.sections .section-background {
    background-color: #AFB8A8;
}
</style>

<style>
/* footer text */
footer.sections p {
    color: black;
} 

<style>
/* footer socials */
footer.sections .sqs-svg-icon--wrapper {
    border-color: black !important;
}
footer.sections .sqs-use--mask {
    stroke: black !important;
}
</style>

 

image.thumb.png.6204b014283b63eecedefc3b5929e9f7.png

Edited by Shiba
Link to comment

It may be because you are missing a closing style tag, see this correction, I've removed the repeating tags and just left an opening <style> at the beginning and closing </style> at the end:

<style>

footer.sections .section-background {
    background-color: #AFB8A8;
}

/* footer text */
footer.sections p {
    color: black;
} 

/* footer socials */
footer.sections .sqs-svg-icon--wrapper {
    border-color: black !important;
}
footer.sections .sqs-use--mask {
    stroke: black !important;
}

</style>

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? 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.