Jump to content

Change color of site title & nav ONLY on index page?

Go to solution Solved by ArminB,

Recommended Posts

  • Replies 6
  • Views 1.6k
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

Hi!

add the following code
 

<style>
.header-title-text a
{color: red !important;}
</style>

To the header of the specific page

> go to WEBSITE
> go to the page
> click the gearwheel icon (settings of this page)
> past the CSS to ADVANCED > CODE INJECTION
you can use any HEX color code instead of "red"

About Armin:
Squarespace Expert Profile: https://www.squarespace.com/designer/profile/3649084
Website: www.braunsberger-media.com
Leaders Lodge: See my Profile

Link to comment
  • 4 months later...

I am trying to change the color of site title and nav links on a single page.  I tried the above code (

<style>
.header-title-text a
{color: red !important;}
</style>)

, but it's not working.  Could my template be causing problems?  I also changed the background color of the page...could that be a problem? Is there another code to try?  Any help would be MUCH appreciated

https://julia-braczyk-cxsi.squarespace.com/painting

(trying to make the text black...right now It's white and disappears on the white background)

Thank you

Link to comment
On 6/14/2024 at 11:14 PM, brianwalksonmoon said:

I am trying to change the color of site title and nav links on a single page.  I tried the above code (

<style>
.header-title-text a
{color: red !important;}
</style>)

, but it's not working.  Could my template be causing problems?  I also changed the background color of the page...could that be a problem? Is there another code to try?  Any help would be MUCH appreciated

https://julia-braczyk-cxsi.squarespace.com/painting

(trying to make the text black...right now It's white and disappears on the white background)

Thank you

Use this code instead

<style>
  header#header * {
    color: red !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

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.