I am having a ridiculously difficult time making this work. I have a menu at the top of my site comprised almost entirely of categories (using wp_list_categories). When a user selects one of the categories, I’d like that category to be highlighted in the menu. At the same time, I have a Home link as well and I’d like it to be highlighted as well, when selected.
So far, nothing I’ve tried has made this work. Neither the category nor the home page links get highlighted when selected.
Can anyone help out?
- The topic ‘Dynamic menu highlighting using “wp_list_categories()”’ is closed to new replies.