Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Can´t apply active class to sublinks on my page… Reply To: Can´t apply active class to sublinks on my page…

#199784
css_fan5
Participant

Hi,

All I want to do is to highlight the current nav element (by applying a specific class) based on the current url.

.top-bar-section is right in the middle.

<section class=”top-bar-section”> please see line 8.