Blog menu item highlighting on archive Layout pages


Whenever I am on an Archive Layout page I get the blog menu item displaying as active.

Do you know why this is and what the solution could be? It’s happened in a few of my sites where I’ve used a Layout for an archive page.

Here is the page I’m referring to where this occurs. It’s a Layout page for a Seminars CPT.

It is also highlighting the Getting Started tab because one of the dropdowns from that tab is Online Seminars, which is the same as the page I am on.

Do you know how to stop this happening too?

Let me know if that makes sense :slight_smile:


Hi David,

Normally, when you visit a single post type, the Posts Page (blog) gets highlighted or the current menu item. To get your issue resolved, please check out this article:


Hi, I’ve looked at this article and have tried several variations of this code in my active child theme’s functions.php, but it’s not making any difference.

For reference you can see on this single CPT page highlighting the Blog page:

Any other ideas?


Hello David,

Are you using the Full Snippet on the last response? We would love to check your site and check your page, custom post type structure and the menus. You can create a secure note in your next reply with the following info:
– Link to your site
– WP login URL
– WP username
– WP password
– WP Administrator Role
- Confirmation that we can access and make changes to your site

To know how to create a secure note, please check this out: How The Forum Works

Best Regards.

Thanks, I’ll attach a secure note with the details to this reply. Feel free to have a snoop around :slight_smile:

The first PHP snippet in the link you sent has been added to the functions.php file.

Archive Layout:

Single Layout:


Hey David,

We’re sorry for the confusion. We cannot check the 3rd party code or snippet as it’s outside the scope of our theme support. The snippet suggested here is only a guide and does not necessarily mean that it’s the solution moreover that what it does is highlight the CPT parent. I believe that is not what you want because you want to get rid of the highlight from the Blog, Get Started and unrelated submenus of the Get Started.


Just a bit of explanation why those menus highlight first so that what I’m going to suggest might make sense, those menus highlight because they have the class x-always-active. That class is added to each of the highlighted menus by the builder because they meet certain criteria.

  1. The Blog menu highlighting is taken from the default WordPress behavior
  2. The Get Started menu is a parent menu item

The solution is to disable the Ancestors in the Navigation Inline > Active Links. You can leave Current on so that the Seminars menu item will still highlight when you are on the Seminars page.


Hope that helps.

Thank you so much @christian for taking the time to explain and for actually understanding my query.
This was just the solution I was looking for and it worked perfectly!

Thanks again,

Hi David,

Glad that we are able to help you.


This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.