mandiwise/isotope-posts

CSS for a specific li

Closed this issue · 1 comments

Hi,

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

Thanks!!

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.