Jump to content

[solved] active / current link


cocothecat
 Share

Recommended Posts

So how do I tell a category link to use a bit of css to highlight it when its current if I was to hard code it all it would look like this :



Categories

Home
Link
Link








and then if i went to another page



Categories

Home
Link
Link







so far I have this in prestashop, which styles it all the way I want but I can't work out how to make it an active or "current" style based on what category I'm in, thanks in advance



Categories


                   {foreach from=$blockCategTree.children item=child name=blockCategTree}
           {if $smarty.foreach.blockCategTree.last}
                       {include file=$branche_tpl_path node=$child last='true'}
           {else}
                       {include file=$branche_tpl_path node=$child}
           {/if}
       {/foreach}








forgot to check the other tpl file! Doh

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