How do I Control the Navbar color once I press on one of the sections?

6 replies · opened Nov 25, 2019

IitzikfishelyNov 25, 2019

I mean, if I press home how do I control it being "Active"?

SSemicolon WebSTAFFNov 25, 2019

Hello,

You can consider using this CSS Code:

#primary-menu > ul > li > a:active {
	color: #HEX;
}

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Additionally, since these codes are related to Customization, we currently do not provide Customization Support according to the Item Support Policy: https://themeforest.net/page/item_support_policy . You will need to manually code this or Hire a Freelancer to help you out.

IitzikfishelyNov 25, 2019

not working...

IitzikfishelyNov 26, 2019

I mean I see that the thing that changed it is:
#primary-menu ul li:hover>a, #primary-menu ul li.current>a {
color: #cd195b;
}

so it uses "current" to highlight the chosen menu
how do I control it?

SSemicolon WebSTAFFNov 26, 2019

Hello,

Yes! The following code controls the Color of the Current Page's Menu Item or when you Hover over it:

#primary-menu ul li:hover > a,
#primary-menu ul li.current > a { color: #1ABC9C; }

how do I control it?

We are not exactly sure about what you mean by this. If you mean that, how would the Page automatically detect which Page is it on and make that Menu Item's class .current so it is Highlighted, then it is currently not possible automatically since Canvas is a Static Template and you will need to change this manually.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

IitzikfishelyNov 29, 2019

well... on the demo it does detect that, so I'm asking what part controls that?

SSemicolon WebSTAFFNov 30, 2019

Hello,

In the Live Previews/Demo, we have added this manually and all the Files on the Live Previews are exactly the same as in the Package. So you will need to add this manually.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard