Hi guys, im using a crude javascript in order to append an active class to my current category on the top menu.
I have added some "hard links" into header.tpl for "home" and "about us" from the information category. Now my Java looks like this :
Code: Select all
<script type="text/javascript">
var url = window.location.href;
$('#navbar a[href="'+ url +'"]').addClass('active');
</script>
But of course, this doesnt work for the hard linked items (home/about). Any ideas on getting this to work? Or at least, adding system generated links for home/about us into the top menu?
Thanks in advance!