noodles22 Posted December 8, 2020 Share Posted December 8, 2020 Site URL: http://jscagsupply.squarespace.com How do I change the navigation bar background color for the homepage only? I want the homepage navigation bar background color to be different than the rest of the pages. Can you please help me with this? pw is testing123. Thanks! Link to comment
Beyondspace Posted December 8, 2020 Share Posted December 8, 2020 17 minutes ago, noodles22 said: Site URL: http://jscagsupply.squarespace.com How do I change the navigation bar background color for the homepage only? I want the homepage navigation bar background color to be different than the rest of the pages. Can you please help me with this? pw is testing123. Thanks! .homepage .header.white { background-color: #e1e6a9 !important; } You can use this custom css .homepage .header.white { background-color: #e1e6a9 !important; } tuanphan and noodles22 1 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace 🚀 Learn how to rank new pages on Google in 48 hours! 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
noodles22 Posted December 8, 2020 Author Share Posted December 8, 2020 13 minutes ago, bangank36 said: .homepage .header.white { background-color: #e1e6a9 !important; } You can use this custom css .homepage .header.white { background-color: #e1e6a9 !important; } This was perfection! Thank you so much! tuanphan and Beyondspace 2 Link to comment
Darrenmsp Posted January 5, 2021 Share Posted January 5, 2021 is there a code to apply this to the entire site? when my pages load, they load with a grey background before changing to my set color. Link to comment
tuanphan Posted January 5, 2021 Share Posted January 5, 2021 (edited) 13 hours ago, Darrenmsp said: is there a code to apply this to the entire site? when my pages load, they load with a grey background before changing to my set color. try this Quote .header{ background-color: #e1e6a9 !important; } Edited January 5, 2021 by tuanphan 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
Darrenmsp Posted January 6, 2021 Share Posted January 6, 2021 On 1/5/2021 at 6:14 AM, tuanphan said: try this thx for replying but that didnt do it. Link to comment
tuanphan Posted January 7, 2021 Share Posted January 7, 2021 16 hours ago, Darrenmsp said: thx for replying but that didnt do it. Try this CSS .header .header-announcement-bar-wrapper { background: red !important; } 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
BrookeSansone Posted November 4, 2021 Share Posted November 4, 2021 do any of you know how to change the navigation color on just one page. I want it white on the home page, and black on all the other tabs. Please lmk! Link to comment
creedon Posted November 4, 2021 Share Posted November 4, 2021 @BrookeSansone Please post the URL for a page on your site where we can see your issue. If your site is not public please set up a site-wide password, if you've not already done so. Post the password here. Adding a site-wide password is not a security breach. Please read the documentation at the link provided to understand how it works. Please read the documentation at the link provided on how to share a link to your site to understand how it works. A link to the backend of the your site won’t work for us, i.e. a url that contains /config/. We can then take a look at your issue. 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
BrookeSansone Posted November 5, 2021 Share Posted November 5, 2021 (edited) @creedon https://wrasse-maracas-c2pc.squarespace.com/ password: test I want Portfolio, About, Press, my social icons and the contact button white on the home page. Then I want Portfolio, About, Press, my social icons and the contact button black on every other page so you can see it. Edited November 5, 2021 by BrookeSansone forgot a tag Link to comment
creedon Posted November 5, 2021 Share Posted November 5, 2021 @BrookeSansone I suggest making the default color for the text and other bits black for the header using the SS interface. Then we can give the code turning them white on the home page. The idea is to choose a default color (black) that will cover the most number of pages and then write CSS to change the homepage only, instead of the other way around, which may require more CSS. 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
BrookeSansone Posted November 5, 2021 Share Posted November 5, 2021 @creedon perfect! I made it black, will you help me write CSS for the white navigation on the home page please! Link to comment
creedon Posted November 5, 2021 Share Posted November 5, 2021 (edited) Add the following to Design > Custom CSS. /* begin home page header navigation white Version : 0.1d1 SS Version : 7.1 By : Thomas Creedon < http://www.tomsWeb.consulting/ > */ body.homepage:not( .header--menu-open ) .header-nav-wrapper a, .homepage.primary-button-style-outline .header-actions .btn { color : white; } .homepage.primary-button-style-outline .header-actions .btn { border-color : white; } .homepage.primary-button-style-outline .header-actions .btn:hover { background-color : white; color : black; } body.homepage:not( .header--menu-open ) .header-actions .icon--fill svg { fill : white; } /* end home page header navigation white */ Let us know how it goes. Edited November 5, 2021 by creedon version 0.1d1 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
BrookeSansone Posted November 5, 2021 Share Posted November 5, 2021 (edited) @creedon it made everything white besides the instagram and facebook logo. Edited November 5, 2021 by BrookeSansone Link to comment
BrookeSansone Posted November 5, 2021 Share Posted November 5, 2021 (edited) @creedon also, it will be white on the home page, then when i click portfolio it's black (which i want), but then when i click back to the home page its black again. Edited November 5, 2021 by BrookeSansone Link to comment
creedon Posted November 5, 2021 Share Posted November 5, 2021 I have updated my code post. 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
travisandrew Posted December 13, 2021 Share Posted December 13, 2021 On 12/8/2020 at 1:51 PM, bangank36 said: .homepage .header.white { background-color: #e1e6a9 !important; } You can use this custom css .homepage .header.white { background-color: #e1e6a9 !important; } Hey there! Having trouble applying this to my site. I'd like the homepage menu to have a 0.2 or so transparent black background, and the other pages to have the solid blue that they have currently. Can you take a look please? Thanks! Site mock: https://pigeon-maracas-9ccm.squarespace.com/ Password: happy2021 Link to comment
Beyondspace Posted December 13, 2021 Share Posted December 13, 2021 35 minutes ago, travisandrew said: Hey there! Having trouble applying this to my site. I'd like the homepage menu to have a 0.2 or so transparent black background, and the other pages to have the solid blue that they have currently. Can you take a look please? Thanks! Site mock: https://pigeon-maracas-9ccm.squarespace.com/ Password: happy2021 My testing result Try adding to your Home > Design > Custom Css .homepage .header-background-solid { background-color: rgba(94,152,177,0.2) !important; } Let me know how it works on your site Support me by pressing 👍 if this useful for you BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace 🚀 Learn how to rank new pages on Google in 48 hours! 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
BethH Posted September 5, 2022 Share Posted September 5, 2022 On 12/8/2020 at 11:33 AM, noodles22 said: On 12/12/2021 at 10:42 PM, bangank36 said: My testing result Try adding to your Home > Design > Custom Css .homepage .header-background-solid { background-color: rgba(94,152,177,0.2) !important; } Let me know how it works on your site Support me by pressing 👍 if this useful for you Hi! Im looking to have this navigation colour page only on my products shopping page, rather than the home page. I would like the banner to be teal, not white. Can you help? https://primitivek9.com/shop/p/pink-leopard-bow-tie Link to comment
tuanphan Posted September 7, 2022 Share Posted September 7, 2022 On 9/6/2022 at 1:54 AM, BethH said: Add to Design > Custom CSS body[class*="type-products"].view-item header#header { background-color: teal !important; } 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment