How to add “current-list-item” class to post list for custom styling
-
Is there a way to add a class to the listing item of the post you are currently on? Like something similar to how the native wp custom/nav menu operates?
I would like to highlight the post that the user is currently on in my sidebar to make navigation easier.
As it is, each post listing item is identical so there is nothing for me to target through CSS. I haven’t been able to find a solution for this yet…
Any help or guidance is appreciated! Thank you ??
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to add “current-list-item” class to post list for custom styling’ is closed to new replies.