Jump to content

Changing Header Text Color on Home/Landing Page

Recommended Posts

Hi! I am working on the landing page for my photography website and on the home/landing page, I would like the text of everything in my header (including the logo) to be white. On the rest of the pages, I would like everything to stay black as it currently is. How do I get the text to be white on the home page only? I figured out the code below but it only works for background color and my background is transparent. Also, I already set the header to "dynamic."

Is this code in the right direction??

body.homepage header#header {
  background-color: white !important;

Working landing page link: https://www.sandrajamaleddine.com/home-2 (password is "square")

Link to comment
  • Replies 1
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

On 10/18/2023 at 1:44 PM, sandrajamaleddine said:

Hi! I am working on the landing page for my photography website and on the home/landing page, I would like the text of everything in my header (including the logo) to be white. On the rest of the pages, I would like everything to stay black as it currently is. How do I get the text to be white on the home page only? I figured out the code below but it only works for background color and my background is transparent. Also, I already set the header to "dynamic."

Is this code in the right direction??

body.homepage header#header {
  background-color: white !important;

Working landing page link: https://www.sandrajamaleddine.com/home-2 (password is "square")

The url doesn't exist. Can you check it again?

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.