-
AuthorPosts
-
June 3, 2018 at 6:33 pm #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
June 4, 2018 at 6:19 am #966321Hey erwin_m,
It’s case sensitive, try using small letters only.
Best regards,
RikardJune 4, 2018 at 7:20 am #966344Hey 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,
ErwinJune 4, 2018 at 7:39 am #966348Trying 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.
June 4, 2018 at 10:04 pm #966845Hi,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- 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 ). - Click ” Submit “.
- 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,
BasilisJune 4, 2018 at 11:10 pm #966897Hi,
Done, see the private section for the credentials.
Regards,
Erwin
June 6, 2018 at 8:12 pm #968036Hi,
I can see the issue not sure why although. Can we edit the link, is th site live?
Best regards,
BasilisJune 6, 2018 at 8:36 pm #968048Hi,
The site isn’t live yet, so Try as you like ;-).
Regards,
Erwin
June 9, 2018 at 7:05 pm #970498Hi,
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,
MikeJune 10, 2018 at 12:29 am #970574I see I included the wrong url. The new one in the private section should work.
Regards,
ErwinJune 12, 2018 at 6:02 am #971525Hi,
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,
IsmaelJune 12, 2018 at 7:00 am #971550But 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,
ErwinJune 14, 2018 at 1:06 am #972557Hi,
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,
IsmaelJune 14, 2018 at 7:24 am #972641Hi 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, 6 months ago by Erwin.
June 15, 2018 at 3:31 am #973065Hi,
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,
MikeJune 15, 2018 at 3:01 pm #973347Hi Mike,
Great solution! Thank you!
Regards,
Erwin
June 16, 2018 at 2:33 am #973496Hi,
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 -
AuthorPosts
- The topic ‘strange anchor menu behaviour’ is closed to new replies.