-
AuthorPosts
-
January 21, 2020 at 10:41 am #1176645
Hi
I’m doing a website which has pages not in the nav.
Ex.
– awards – awards history
Awards is in the nav, but not the history, it’s a link on the awards pages. In the page structure, the page is a child of awards though. When I’m on Awards history page, the menu item Awards is not highlightend.How can I force it to highlight ?
Other related point
A page (CPT) accepts GET parameters to sort the query of the objects listed. As soon as a param is added to the URL, the page itself is not highlighted anymore in the menu…Again, how can I force it to highlight ?
I can imagine some JS workarounds based on classes, but I’m sure there is something simpler, is there not ?
Thanks in advance & best regards
January 22, 2020 at 9:08 am #1177030Hey Stéphane,
Could you post links to where we can see the problems you are having please?
Best regards,
RikardJanuary 22, 2020 at 11:41 am #1177129nope I can’t just now, cause the site is only local for now, but it’s quite easy to figure: I have a child page which is not in the nav but is the child of another page which is in the nav, and want to highlight the parent page when opening the child (through direct link as it’s not in the nav)
If you need a link, I’ll come back to you when is on dev server (quite soon)
thanks
January 23, 2020 at 12:26 pm #1177572Hi,
Thank you for the update.
Let us know once the site is live so that we can check the navigation. We’ll keep the thread open.
Best regards,
IsmaelJanuary 23, 2020 at 3:44 pm #1177670ok, it was quick finally!
You can find the access on the private content part of this message. I also made you an account if needed.
The URL will let you know why I want to make this site very well :-)
January 24, 2020 at 3:40 am #1177966Hi,
Thank you for the update.
Do you have many pages with this kind of layout? The menu highlight disappears because the menu ancestor class attribute is removed after selecting a tab (by category, by last change). We can keep the highlight using css but you may have to do it for every archive or category item in the site.
Example:
.post-type-archive-standards .menu #menu-item-45 a .avia-menu-text, .post-type-archive-technical_reports .menu #menu-item-45 a .avia-menu-text { color: #F27B10 !important; }
This css should work in the standard and technical_reports archive pages.
Best regards,
IsmaelJanuary 24, 2020 at 5:16 pm #1178185indeed yes, it’s the only way I found to have a “archive” page for CPT that can ALSO be edited in ALB / wordpress: i.e. make the archive page read a page ID content that contains ALB elements before a shortcode listing the archive…
I know it may sound weird, but it’s an essential feature, my clients want to be able to edit an intro content before the archive list comes…
thanks for the info, I think I’ll try adding a class to all menu items and highlight them with JS, it will be shorter
January 27, 2020 at 9:32 am #1178616Hi,
Thank you for following up.
I know it may sound weird, but it’s an essential feature, my clients want to be able to edit an intro content before the archive list comes…
Using a third party plugin, you can redirect the default archive pages to a custom page built with the advance layout builder. Have you tried that? Unfortunately, it’s not possible to edit the archives page using the layout builder.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.