M
M
miniven2017-06-15 10:02:30
CMS
miniven, 2017-06-15 10:02:30

How to enable a menu item on a child page in wordpress?

I use the navigation component on a Wordpress site. But there is such a problem: the active menu item is active in the section itself, and in the child pages of the section it is no longer active. For example, when I have the "Articles" section, the menu item is active, but on the detailed page of each article it is not active. How to make sure that there is activity on child pages as well?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan, 2017-06-15
@miniven

Classes are added to the ancestor

current-page-ancestor current-menu-ancestor current-menu-parent current-page-parent current_page_parent current_page_ancestor
add to current-menu-ancestorthe same typography as the active item.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question