Can't define active/current menu item

2 replies·opened Sep 20, 2020
N
NEROVIKSep 20, 2020

Hello,

Main menu - No sublinks

	<nav class="primary-menu">
		<ul class="menu-container">
			<li class="menu-item">
			 <a class="menu-link current" href="index.html"><div>TEST/\ Métier</div></a>

/* CSS */
.dark .menu-item:hover > .menu-link,
.dark .menu-item.current > .menu-link {
	color: #E24A37!important;
}

I put "current", I tried "active" but it does not work.
Thanks in advance for help.

S
SemiColonWebSTAFFSep 21, 2020

Hello,

Please add the .current Class to the .menu-item Element (not the .menu-link Element).

This will definitely work fine. Hope this Helps!

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

N
NEROVIKSep 21, 2020

Perfect. Many thanks

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