x

How do I change the site title color on scroll?

Hi all,

I'm trying to figure out how I can change the color of my site title on scroll so it doesn't blend in with the background of the navbar. I've seen countless posts similar to this before, but I'm looking to change the site title specifically and not the navbar color. I'm using the "Birdseye 2" theme, which makes it difficult to find any tutorials that are for LESS and not CSS, especially one that I (a very novice programmer) can follow. I'm hoping somebody can help me out or guide me towards someone who can. Thanks!

1,075 Views
Message 1 of 11
Report
10 REPLIES 10

Did you want it to fade from one color to another, or just change to the other color once you start scrolling?

1,057 Views
Message 12 of 11
Report

If getting it to fade is possible, then definitely yes!

1,051 Views
Message 12 of 11
Report
Square

Hi @JustinQuinn Can you please post a link to your site? It might be helpful for @BJ or anyone else on here that can help out, in case they are not familiar with the theme you are using. Thanks! 

1,040 Views
Message 12 of 11
Report

Hi, sorry for the (very late) response! The website is https://cartoonisty.weebly.com/, thanks!

1,028 Views
Message 12 of 11
Report
Square

No worries on the delay! I see @BJ popping in here and there. I'm sure he (or another code-helper) will see this post soon. Smiley Happy

1,026 Views
Message 12 of 11
Report

Thanks for the tag @Bernadette. This should work for you on the published site if you put it in Settings > SEO > Header code, @JustinQuinn:

<style>
    .affix .wsite-title
    {
        color: #000 !important;
    }
</style>

It will make it turn black when you scroll and the navigation turns white.

1,024 Views
Message 12 of 11
Report

@BJ Thanks for your help, but I tried pasting the code in the Header Code box in my SEO settings, but it doesn't seem to have any effect on the published site. The website is https://cartoonisty.weebly.com/ if you need to check it again. Anything else I could try or did I do something wrong?

1,022 Views
Message 12 of 11
Report

Hmm... try moving the code to Settings > SEO > Footer Code instead.

1,016 Views
Message 12 of 11
Report

Just tried moving it to the Footer and it still doesn't work. Just to make sure we're on the same page, we're trying to change the color of the site title "Cartoonisty" in the navbar. Is there another bit of code that we could try instead that may work? Thanks!

1,013 Views
Message 12 of 11
Report

Oh, I see what the issue is. Try this:

<style>
    #wsite-title
    {
        color: #000 !important;
    }
</style>

792 Views
Message 12 of 11
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.