Answer the question
In order to leave comments, you need to log in
How to highlight active menu link in Bitrix?
Site on Bitrix topliga.ru.
There are menu items for "Men", "Women", "Children".
<div class="dop-menu">
<ul>
<li><a href="/women">ЖЕНЩИНАМ</a></li>
<li><a href="/men">МУЖЧИНАМ</a></li>
<li><a href="/kids">ДЕТЯМ</a></li>
</ul>
</div>
.dop-menu ul li a:active {
text-decoration: underline;
}
Answer the question
In order to leave comments, you need to log in
The menu component has a SELECTED key in the array for the record that matches the current page.
Here is an example
Just make sure there are no problems with the cache.
If I'm not mistaken, then this code should do it
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question