M
M
MRcracker2020-04-21 12:35:23
WordPress
MRcracker, 2020-04-21 12:35:23

How to add a page class when the visitor is in a certain category?

There is a page. It has several links to other pages from a certain category. The active menu item is highlighted, but as soon as you switch to an entry from a category on this page, this menu item is no longer highlighted. How can I make the menu item highlighted when navigating through the posts?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
godsplane, 2020-04-21
@godsplane

is_category()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question