Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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

    #1177030

    Hey Stéphane,

    Could you post links to where we can see the problems you are having please?

    Best regards,
    Rikard

    #1177129

    nope 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

    #1177572

    Hi,

    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,
    Ismael

    #1177670

    ok, 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 :-)

    #1177966

    Hi,

    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,
    Ismael

    #1178185

    indeed 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

    #1178616

    Hi,

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.