Avada Forums Community Forum Highlight menu ins absolute anchor menu set on my homepage

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • supcorp
    Participant
    Post count: 7

    Any ideas to solve this:

    I have a menu that links to 4 pages and 1 personalized link. This link is set to an anchor in the home. I can´t put relative link #menu, I need to put absolute mywebiste.com/#menu because I case we are on another page the relative link won´t work.

    Yet the problem I have is that I want to use the highlight menu in every page, yet in the home, I have two selected, my home and anchor menu, how can I make the style for the anchor menu not to be highlighted in my homepage? I only want one highlight menu per section, do not include the anchor menus.

    marklchaves
    Participant
    Post count: 873

    Hi,

    Ya, this is an interesting anti-pattern. I had to fix this for one of my clients. I just posted the code on GitHub.

    https://gist.github.com/marklchaves/70a232b69587cb833d4a333c3d09a58f

    You’ll need to find the menu item and ID first. Then replace mine with yours.

    And, you can turn on highlighting for any pages that needed using the second set of selectors.

    Shout if you have any questions.

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