A
A
Alexander2016-06-07 11:31:15
User navigation
Alexander, 2016-06-07 11:31:15

How to make a certain menu item active in Wordpress for a post?

Such a task is worth it. Made a blog on WordPress. You need to make sure that when you go to the post, the "My blog" element becomes active in the menu. Because the menu items become active only for pages
Please, tell me how to do it. Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Vorotnev, 2016-06-07
@HeadOnFire

WordPress already generates the required CSS class.current_page_parent

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question