justaprogrammer Posted April 22, 2020 Share Posted April 22, 2020 Hello! I want to add sfHover to my category (not page) menuitem but I don't know how. It seem that PS doesn't want add class to categories just pages. Here is the previous programmer code working with pages: <div id="menuItems" class="col-sm-8"> <ul> {assign var=tmpMenu value=$MENU|replace:'<li></li>':''} {assign var=items value='</li>'|explode:$tmpMenu} {foreach $items as $item} {if !$item@last} <li>{$item}</li> {/if} {/foreach} </ul> </div> I added a category to this but I doesn't get the sfHover class which makes the menuitem active. Sadly I can't manually add the menuitem because the sort of the menuitems don't let me. Could you help me, please? Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now