Streaming live at 10am (PST)

Current state for multiple pages - no CMS

Hello WF,

I would like to ask you if it is possible to make the current state on a single nav link for multiple pages. Currently, the current state is generated by linking nav link to the current page.

For example
Mainpage / news (current state)
Main page / news (current state) / acticle |||||| On this subpage I would like to have current state on my nav link ‘‘news’’.

I am not using CMS!

Is it possible in Webflow?

You can do this with JS on the article page:

<script>
$(document).ready(function(){
 $('#your-nav-link-id').addClass('w--current');
});
</script>

@avivtech thank you for that script. I’m doing something wrong because it doesn’t work.

I’ve tried ‘#m_novinky’ and ‘m_novinky’

Put the script before the <body> tag

My bad, thanks a lot! Works fine :heart:

1 Like