Home › Forums › Back End › WordPress: Add a class on an li for “current category” › Re: WordPress: Add a class on an li for “current category”
Ok, so here’s what I was able to come up with. Basically using WP’s conditional tags, I created an IF statement that checked to see if the current category was not equal to the ID of the current category. Therefore, if there was a match for ID’s, we could then run a separate line where we added a class to the current category.
Here’s the [pen](http://codepen.io/anon/pen/LCHFJ “codepen!”).