Hello,
I'm using "Articles - Category" module which displays a list of articles from one or more categories. You use this method in your template.
The problem with this module is that the first <li> tag never takes โactiveโ class, so I can't custom the link.
I added a script before closing </body> tag to add "active" class, but it has no effect:
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('ul.categories-portfolio li:first-child').click(function() {
jQuery('ul.categories-portfolio li:first-child').removeClass("active");
jQuery(this).addClass("active");
});
});
</script>
I don't understand if this is a problem with the template or the Joomla module.
How to fix this?
Thanks,
Lorenzo