Wordpress Question - Categories
Wordpress Question - Categories
Out of context: Reply #10
- Started
- Last post
- 11 Responses
- Nathan_Adams0
You can't just add a removeClass and addClass to the click function?
That should get you your active class.
(Edit of lines 832 to 843)$('.filter a').click(function() {
$('.filter a').removeClass('active');
$(this).addClass('active');
var selector = $(this).attr('data-filter');
$container.isotope({
filter: selector
});
return false;
});You can use the text function to take it a step further and grab the contents of the clicked filter link and apply it to another div to get your Displaying: [category name]