JusChow Posted September 2, 2023 Posted September 2, 2023 Currently on my home page I have my logo and links all in white. However I want to make my other pages have a white background and black heading. Is there a way I can change the header on my other pages so that they are black text/logo without changing my main home page.
Lesum Posted September 2, 2023 Posted September 2, 2023 @JusChow You can try the code blocks below to display a black header background: For Portfolio page: #collection-64f2cd31da920c04bc6530b7 { header#header { background: #000 !important; } } For About page: #collection-64f2cd31da920c04bc6530b7 { header#header { background: #000 !important; } } For contact page: #collection-64f2cd31da920c04bc6530b7 { header#header { background: #000 !important; } } You just have to change the #collection-id on each block of code. Each page has their unique collection-id. You can find the collection-id of a page using this Chrome extension: https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee?
JusChow Posted September 2, 2023 Author Posted September 2, 2023 Is there a way to make it black just for the Text and a way to Chang Logo that I can upload to make it black. ? I would like to still keep the white background.
Lesum Posted September 2, 2023 Posted September 2, 2023 (edited) @JusChow Sure. This block of code will change the logo and text links to black on the portfolio page: #collection-64f2cd31da920c04bc6530b7 { .header-title-logo img { filter: brightness(0%) !important; } .header-nav-item a { color: #000000 !important; } .header-actions .icon--fill svg { fill: #000000 !important; } } This code will convert the logo to black. You won't have to upload a black logo. Edited September 3, 2023 by Lesum Added the code to change the social icon to black If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee?
JusChow Posted September 2, 2023 Author Posted September 2, 2023 56 minutes ago, Lesum said: @JusChow Sure. This block of code will change the logo and text links to black on the portfolio page: #collection-64f2cd31da920c04bc6530b7 { .header-title-logo img { filter: brightness(0%) !important; } .header-nav-item a { color: #000000 !important; } } This code will convert the logo to black. You won't have to upload a black logo. Do I put this into the page settings under advanced? So far inputting the block of code into page settings advanced doesn't work.
Lesum Posted September 3, 2023 Posted September 3, 2023 @JusChow Add it under custom CSS panel. If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee?
Solution Lesum Posted September 3, 2023 Solution Posted September 3, 2023 (edited) @JusChow You can put this version into page settings under advanced. <style> #collection-64f2cd31da920c04bc6530b7 { .header-title-logo img { filter: brightness(0%) !important; } .header-nav-item a { color: #000000 !important; } .header-actions .icon--fill svg { fill: #000000 !important; } } </style> Edited September 3, 2023 by Lesum Added the code to change the social icon to black If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee?
Lesum Posted September 3, 2023 Posted September 3, 2023 @JusChow Updated the previous code to add the color change affect to social icons. If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee?
JusChow Posted September 3, 2023 Author Posted September 3, 2023 Just now, Lesum said: @JusChow Updated the previous code to add the color change affect to social icons. Already read my mind. Appreciate it!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment