Jump to content

HOW TO ADD A BACKGROUND COLOR TO THE FOOTER?

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 17
  • Views 15.6k
  • Created
  • Last Reply

Top Posters In This Topic

Hi, you can do it just by editing a page, scrolling down to footer, and editing the footer block. Then select colours and a colour from your colour themes.

Or, if you want a different colour to what's in your colour themes then add the below custom code if you have a 7.1 template:

footer,
footer *
 {
 background-color: green!important;
}

Replacing green with whatever hex colour you want: https://htmlcolorcodes.com/

Or do you have a 7.0 template?

Link to comment
  • 2 weeks later...
  • Solution
On 3/9/2021 at 6:15 AM, Sladey16 said:

dinosandyoung.squarespace.com

Password: dinosandyoung2021

Add to Design > Custom CSS

/* Footer background */
footer#footer {
    background: red;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 1 year later...
18 hours ago, Iwan said:

Hi there! Further to the above, can I have a different colour background for each page's footer?

Edit each page >> Add a Code Block at bottom of page >> Paste this code

<style>
  /* Footer background */
footer#footer {
    background: red;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 10 months later...
  • 2 weeks later...
On 2/8/2023 at 11:54 AM, byebarcelona said:

I have used the code you provided, but footer's background color does not change. Could you help me? 

https://www.shiqius.com/work/newsaction

Screenshot 2023-02-07 at 8.53.58 PM.png

You mean Footer, or this section?

image.thumb.png.3aab1954f6c4c7d032832699f8cdbc9e.png

If footer, use this code

<style>
  footer.sections .section-border, footer.sections .section-background, footer.sections {
    background-color: #000 !important;
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 2 weeks later...
On 2/24/2023 at 2:01 AM, byebarcelona said:

Hey Tuanpan, 

Thank you for answering my questions. I don't know why but it still does not work. Could you help me?

image.thumb.png.1e9688e913aafdd4647241964b76a348.png

Try save & reload the site

If it doesn't work, let me know, we will adjust the code to you can add it to CSS box

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 3/2/2023 at 12:21 AM, byebarcelona said:

Hey Tuanphan, 

No. I saved and reloaded. It just couldn't work. Thank you so much for your help.

 

Can you take a screenshot of "footer"? or you mean Pagination Section? Above code for Footer, not Pagination

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.