Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #966184

    Hi,
    In my menu I’m trying to link to a ID down the page. On some strange way it doesn’t work. Also the specific menu-item is highlighted on top of the page. It is about menu-item ‘Over mij’. The url is in the private section.

    Regards,

    Erwin

    #966321

    Hey erwin_m,

    It’s case sensitive, try using small letters only.

    Best regards,
    Rikard

    #966344

    Hey Rikard,
    That solves the navigation indeed, thanks! But the same menu-item is still highlighted on top of the page. How can I solve that?

    Regards,
    Erwin

    #966348

    Trying to figure this out. When I use the whole url in the menu ending with #overmij, it highlight the menu wherever I am. Using only #wopr, without the url, it’s working fine. But now I can’t navigate to the section #overmij outside the homepage.

    #966845

    Hi,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( do be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create a admin user and post the login credentials in the “private data” field.

    Best regards,
    Basilis

    #966897

    Hi,

    Done, see the private section for the credentials.

    Regards,

    Erwin

    #968036

    Hi,

    I can see the issue not sure why although. Can we edit the link, is th site live?

    Best regards,
    Basilis

    #968048

    Hi,

    The site isn’t live yet, so Try as you like ;-).

    Regards,

    Erwin

    #970498

    Hi,
    In the Private Content area I see your login url and user email address, but I don’t see the password. Please include so we can login.

    Best regards,
    Mike

    #970574

    I see I included the wrong url. The new one in the private section should work.

    Regards,
    Erwin

    #971525

    Hi,

    The “OVER MIJ” menu item is highlighted when I clicked it. Isn’t that what you’re expecting? It’s the same when I clicked the “Contact” menu item. Both items are using absolute url.

    Best regards,
    Ismael

    #971550

    But when I enter the site, the homepage, ‘OVER MIJ” is already highlighted. This should happen when I scroll to the section ‘OVER MIJ’, not on top of the page.

    Regards,
    Erwin

    #972557

    Hi,

    Thanks for the update.

    Please install the following plugin and then create a duplicate of the “OVER MIJ” menu item. Remove the absolute url and leave the anchor for the original item. In the “Visibility” field, add the “is_home()” conditional function. For the cloned item, add the “!is_home()” function.

    // https://wordpress.org/plugins/menu-items-visibility-control/

    Best regards,
    Ismael

    #972641

    Hi Ismael,

    Thank you for your reply. I’ve installed the plugin, created a new menu-item and added the code in the visibility-field. But unfortunately nothing changes.
    When I change the explanation mark from the absolute url to the anchor, the behaviour of the highlight is okay, but leaving the homepage the anchorlink doesn’t reach the section on the homepage anymore.

    Regards,
    Erwin

    • This reply was modified 6 years, 5 months ago by Erwin.
    #973065

    Hi,
    What was happening is that on your home page “Over mij” was the only menu item pointing to the page, so it was given the class “current-menu-item” even though it actual pointed half way down the page, as far as WordPress is concerned, it’s pointing to the page.
    To solve I added a “Home” menu item that points to the page, so now it is correctly highlighted, and “Over mij” is only highlighted when you click it. I also added the full url to it so you don’t need two menu items to the same anchor, and it works from any page.
    You can rename the menu item “Home” to anything you like, so long as the url is to that page.
    Or you can hide the menu item “Home” with this code in your WordPress > Customize > Additional CSS:

    #menu-item-510 {display:none !important;}

    it will let WordPress assign the class “current-menu-item” to it and not highlight “Over mij” until you click it.

    Best regards,
    Mike

    #973347

    Hi Mike,

    Great solution! Thank you!

    Regards,

    Erwin

    #973496

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here
    For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 17 posts - 1 through 17 (of 17 total)
  • The topic ‘strange anchor menu behaviour’ is closed to new replies.