Hello there. I'm using the Categories Images plugin on my website to, obviously, list my categories with images. It's working perfectly, however I'd like to set a "current-menu-item" style to the category that I'm currently browsing. How do I do that? If I add a style to
"li" or "a" it will add it to every link in the list. Any suggestions?
<?php foreach (get_categories() as $cat) : ?> <li> <img src="<?php echo z_taxonomy_image_url($cat->term_id); ?>" /> <a href="<?php echo get_category_link(); ?>"> <?php echo $cat->cat_name; ?> </a> </li> <?php endforeach; ?>