Jump to content

Add sfHover to category in blocktopmenu Prestashop 1.6.1.7


justaprogrammer
 Share

Recommended Posts

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 [email protected]}

                     <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!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More