I have a menu at the top and one in the footer. Menu items use the same id, resulting in duplicates. For example on my site:
<li id="menu-item-1309"...>
and at least three others, appear twice on the page.
Here’s my home page: http://kenblackman.com
an easy way to avoid this is to “duplicate” the main-menu by creating a new one with same Menu-items and declare only this to enfold footer menu, and the other one to main-menu. Different Menus (other names) results in new ids
4 items its not so much work ! :wink
btw: the functionality of your site is not influenced by that – but you are right that this will not be html5 conform and so not valide
Hey!
@Guenni007 Thanks for sharing that wonderful tip!
@mantisjitsu WordPress by default creates these ID’s and when you use it in multiple places the menu get’s duplicated with the ID’s to avoid duplication kindly use the tip as suggested by @Guenni007
Best regards,
Vinay Kashyap
Allthough the “fault” is still there – the solutions seems not so urgent :lol:
Thanks for the suggestion @Guenni007. Will do that. It’s a bit more serious if you’re trying to do anything with js or css with those objects.
Hi @mantisjitsu,
Thanks for the feedback, please let us know if you should need any more help on the topic.
Regards,
Rikard