Jump to content

Add Class To Menu And Submenu Items


cedric_charles

Recommended Posts

Hello,

 

I would like to add a small icon to subcategories in PrestaShop submenu.

 

For this (if you have another solution, I'm interested), I'll just target each item and add its icon in CSS. I would like to add a class like "cat-15" (15 is the id of the category) to "li". Unfortunately I can"t find how the menu items are created...

 

Thank you in advance,

Cédric

Link to comment
Share on other sites

The problem is that in this .tpl, the sub categories items are create like that :

	<div id="block_top_menu" class="sf-contener">
		<div class="cat-title">{l s="Menu" mod="blocktopmenu"}</div>
		<ul class="sf-menu clearfix menu-content">
			{$MENU}
		</ul>
	</div>

How can I alter the {$MENU} ?

Link to comment
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
×
×
  • Create New...