Archived topic
Main menu and sticky creates duplicate id
11 replies · Started by Longinos on May 19, 2019
Hi
When you use main menu (Main navigation) and sticky navigation they use the same elements and get the same element's id´s, this throw a error of duplicates id's (Ligthouse or any html tester).
Can be feasibly to tag these elements with a prefix to get unique elements id´s?
For example, the main menu w/o prefix and the menu elements in sticky prefixed with a letter, say s.
Main: menu-item-XXX
Sticky: s-menu-item-XXX
Hi there,
Are you using the latest version of GP Premium?
This should be already be fixed: https://generatepress.com/gp-premium-1-8/
Menu Plus: Prevent duplicate IDs when sticky navigation is cloned
Hi Leo,
Yes i use generatepress 2.2.2 and gp premium 1.8.2
Perhaps some option i have missed?
Hi there,
We had to revert this fix in 1.8.1, unfortunately. It was causing issues with Cyrillic characters: https://generatepress.com/gp-premium-1-8-1/
We'll be looking into a better fix for GPP 1.9.
Hi Tom
Ok. I can wait for it. =:-))
Awesome, thanks! :)
Hi
Some news on this?
Hi there,
We couldn't get this into 1.9, unfortunately. It's still a top priority - I'll be sure to get it in 1.10.
Sorry for the delay!
Hello,
I have the same issue, is there any news about a solution ?
I turned off the sticky menu and I still have warnings about IDs duplicated : https://yellowlab.tools/result/fmnko7idny/rule/DOMidDuplicated
An about lot's of JS issues : https://yellowlab.tools/result/fmnko7idny/timeline#filter=eventNotDelegated
Thanks,
Sam
Hi there,
No solution yet, looking like it will make it in 1.11.0.
Feel free to open a new topic about those issues - would help to see the site.
Thanks!
very good, any news with this problem?
regards
No news yet, 1.11.0 is still in development :)