ouldfella Posted March 6, 2017 Share Posted March 6, 2017 <ul> <li><a href="/">Entreprise</a></li> <li><a href="#" target="_blank">Particulier</a></li> <li><a class="active" href="{$WEB_ROOT}/contact.php">Contact</a></li> </ul> how to add active class for contact item when i am in this page ? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 6, 2017 Share Posted March 6, 2017 if this is in a Smarty template, what about using... <ul> <li><a href="/">Entreprise</a></li> <li><a href="#" target="_blank">Particulier</a></li> <li><a {if $filename eq "contact"}class="active"{/if} href="{$WEB_ROOT}/contact.php">Contact</a></li> </ul> 0 Quote Link to comment Share on other sites More sharing options...
ouldfella Posted March 7, 2017 Author Share Posted March 7, 2017 (edited) hi, thanks for your reply i think i found a way, the hook, i am taking a loook Edited March 7, 2017 by ouldfella 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.