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

CSS for a specific li #15

Closed fernonc closed 9 years ago

fernonc commented 9 years ago

Hi,

This is an awesome plugin. Is it possible to style a specific li item of the filter menu?

Thanks!!

mandiwise commented 9 years ago

That depends on what you're trying to accomplish with the styles...I presume you want to add a custom colour, etc. depending on the taxonomy term in the menu? At this time the plugin doesn't include any term-specific IDs or classes on the list elements that wrap the filter links. However, there is a data attribute on each a href (inside the list elements) that you should be able to target in your CSS. See:

http://stackoverflow.com/questions/5324415/select-elements-by-data-attribute-in-css

I'll definitely consider adding relevant classes or IDs to the list items in an upcoming release of the plugin.