How to add an active class on a current menu item page in html header.php . I added a custom menu in wordpress that is :
<ul class="menuul">
<li><a href="/#/" class="current">Начало</a></li>
<li><a href="/#/muskulnamasa/">Действие</a></li>
<li><a href="/#/sastavki/">Състав</a></li>
<li><a href="/#/testosteron/">Тестостерон</a></li>
<li><a href="/#/vuprosi/">FAQ</a></li>
<li><a href="/#/mnenia/">Мнения</a></li>
<li class="lastli"><a href="/#/porachka/">ПОРЪЧАЙ</a></li>
</ul>
So how to add "active" to it? may be with some javascript? or PHP? i did try several answers here in the website: i did try this(doesnt work)
also i tried this(doesnt work)
and this(no success) ; and finally this Nothing seems to work. I am probably doing something essential wrong - please help - thanks!
To explain in recap what i need:
I want to add class "active" to the current menu item(current page). Not only to one of the pages, but to any active . I need something to detect the current page and add a class to it(on the