Answer the question
In order to leave comments, you need to log in
How to change a single modx menu item?
There is a top menu on the site with cms MODX. Data is entered into the top menu automatically via pdoMenu. I'm not entirely savvy about this myself, but I want to highlight the separate item "Tours with cashback" with a different color through CSS and move it to the right. I don’t understand how to do this if the menu is assembled automatically on the entire site and classes are assigned automatically. Maybe someone knows somehow separately whether it is possible to separate one item.
Answer the question
In order to leave comments, you need to log in
You can do so.
In the tpl parameter of the snippet, specify the name of the chunk, and in the chunk itself, write code that checks for the resource id, and if it matches, then substitute the class.
<li class="header__nav-item">
<a href="" class="header__nav-link link_btn"></a>
</li>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question