Skip Navigation

[Resolved] Navigation not active for template pages linked to from a view

This support ticket is created 4 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+01:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 4 years, 4 months ago.

Assisted by: Nigel.

Author
Posts
#1403557

Tell us what you are trying to do?
I have a custom post type created in toolset where I created a looping view with all of my providers (custom posts) listed. The navigation item is "providers". But when I click on one of my providers (or posts) from the view, it brings me to a single provider page which does not have an active navigation anymore.

Is there a way to make the navigation remain active for "providers" view page and the single pages linked from this view?

What is the link to your site?
hidden link

#1404357

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Screenshot 2019-12-10 at 14.06.19.png

Is this what you mean?

That when you are visiting a single provider post you want the menu to be highlighted as if you were on the providers archive page (which is what the menu links to)?

In that case you will need to add some custom CSS where the selector identifies that you are on a single provider page (which you can tell from the body classes) and which then targets the menu item with enough specificity that it overrides the existing styles.

Try this:

body.single-providers > #top-menu > .menu-item-480 > a {
    color: #edbd73;
}
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.