mandiwise / isotope-posts

[RETIRED] This plugin allows you to use Metafizzy's Isotope javascript plugin to display feeds of WordPress posts with a simple shortcode. Works with custom post types and custom taxonomies too.
GNU General Public License v2.0
55 stars 17 forks source link

Add ".active" class to active filter #12

Closed codigna closed 9 years ago

codigna commented 10 years ago

Hi, how can I add a class to the active filter to style it?

mandiwise commented 10 years ago

This could possibly be accomplished editing the public.js file to also add an "active" class to the filter list item on the hashchange event. I have not tested this though.

asoretmadolell commented 9 years ago

The links in the filters have a ".selected" class when active. This was enough for me :-)

seanpsullivan commented 9 years ago

@asoretmadolell, where are you seeing the ".selected" class? Mine has none. screen shot 2014-10-31 at 3 23 27 pm

asoretmadolell commented 9 years ago

@madebyelmcity , when first loading the page with the isotope shortcode, there will be no ".selected" class. It appears only when clicking on a filter. I'm attaching a screenshot. I hope it helps! hi