Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #588604

    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

    #588613

    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

    • This reply was modified 8 years, 8 months ago by Guenni007.
    #589417

    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

    #593358

    Allthough the “fault” is still there – the solutions seems not so urgent :lol:

    #593362

    Hey!


    @guenni007
    Thanks for your input :)

    Cheers!
    Yigit

    #597412

    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.

    #597591

    Hi @mantisjitsu,

    Thanks for the feedback, please let us know if you should need any more help on the topic.

    Regards,
    Rikard

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