Jump to content

Custom menu for Category link - Active link


Recommended Posts

Hello!

 

I modified the user info module to add other links, including 2 external links, link to store home, and two links to categories. Searching through this forum I found the following to add an active class for the home link:

 

<li><a href="{$link->getPageLink('index.php')}"{if $page_name == 'index'} class="active"{/if}>{l s='store' mod='blockuserinfo'}</a></li>

 

However, I don't know how would it be if I want the categories link to be "active" when I'm in any of its product page. I want to use the category module just to show the subcategories.

 

Any idea?

 

Please, help me :)

 

Thank you!

Link to comment
Share on other sites

×
×
  • Create New...