Jump to content

Change background color to my store page only

Recommended Posts

Add to Page Settings > Advanced > Header

<style>
  /* main content */
  div#siteWrapper {
    background: white;
}
  /* header */
  header#header {
    background: white;
}
  /* footer */
  footer#footer {
    background: white;
}
  div#preFooter {
    background: white;
}
</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
13 hours ago, Tuelay said:

Hi @tuanphan Could you tell me what I need to do to change the background colo rfor every page / for the entire website? I have the color code. I just don't know what to paste into CSS. 🤓 

Add to Home  >Design > Custom CSS

 /* main content */
  div#siteWrapper {
    background: white;
}
  /* header */
  header#header {
    background: white;
}
  /* footer */
  footer#footer {
    background: white;
}
  div#preFooter {
    background: white;
}

 

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

@Shwena

We'd have to come up with some CSS to change the color of the fonts as well.

Give us some time to see what we can come up with. Bump this thread if we don't get back to you in a couple of days.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

@Shwena

I wouldn't say this is 100% but it's a good start, I think! 🙂

Add the following to Store Settings > Advanced > Page Header Code Injection for the store page.

<style>

  /*
  
    begin site black themed, store page to white
    
    Version         : 0.1d0
    
    SS Version      : 7.0
    
    v7.0 Templates  : Brine ( Aria, Blend, Burke, Cacao, Clay, Fairfield, Feed,
                      Foster, Greenwich, Hatch, Heights, Hunter, Hyde, Impact,
                      Jaunt, Juke, Keene, Kin, Lincoln, Maple, Margot, Marta,
                      Mentor, Mercer, Miller, Mojave, Moksha, Motto, Nueva,
                      Pedro, Pursuit, Rally, Rover, Royce, Sofia, Sonora,
                      Stella, Thorne, Vow, Wav, West )
                      
                      your template is not listed? then it is not currently
                      supported
    
    By              : Thomas Creedon < http://www.tomsWeb.consulting/ >
    
    no user serviceable parts below
    
    */
    
    .Header-branding-logo {
    
      -webkit-filter : invert( 100% );
      filter : invert( 100% );
      
      }
      
    .Header--bottom,
    .Intro,
    .Main,
    .Footer
    
      {
      
        background-color : white;
        
        }
        
    .tweak-header-primary-nav-hover-style-active .Header-nav .Header-nav-folder-item,
    .Intro,
    .ProductList h1.ProductList-title,
    .ProductList .product-price,
    .Footer-nav a
    
      {
      
        color : black;
        
        }
        
    .tweak-header-primary-nav-hover-style-active .Header-nav .Header-nav-item,
    .tweak-header-primary-nav-hover-style-active .Header-nav .Header-nav-folder-item:hover
    
      {
      
        color : #36454f; /* Charcoal */
        
        }
        
    .tweak-header-primary-nav-hover-style-active .Header-nav .Header-nav-item:hover {
    
      color : black;
      
      }
      
    .Footer-nav a:hover {
    
      color : rgba( 0, 0, 0, 0.5 );
      
      }
      
    .social-icons-color-white.social-icons-style-regular .sqs-use--icon {
    
      fill : black;
      
      }
      
    .social-icons-color-white.social-icons-style-regular .sqs-svg-icon--list:hover .sqs-use--icon {
    
      fill : rgba( 0, 0, 0, 0.4 );
      
      }
      
    .social-icons-color-white.social-icons-style-regular .sqs-svg-icon--list:hover .sqs-svg-icon--wrapper:hover .sqs-use--icon {
    
      fill : black;
      
      }
      
    .ProductItem-additional {
    
     color : black;
      
      }
      
    /* end site black themed, store page to white */
    
  </style>

This is specific to the poster's need.

Let us know how it goes.

Edited by creedon

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

@creedon Ahh this is perfect! Thank you so much for you help - massively appreciated! 😄 Only thing is the main logo at the top of the page is now black across all other pages on the website instead of white when you go from the shop page to any other page. Is there a way to change this?

Edited by Shwena
Link to comment
Quote

Only thing is the main logo at the top of the page is now black across all other pages on the website instead of white when you go from the shop page to any other page. Is there a way to change this?

Please put the code in Store Settings > Advanced > Page Header Code Injection for the store page. When the code is there is will only effect the store page.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

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.