Home Forums Basel support forum Warning: [DOM] Found 2 elements with non-unique id

Warning: [DOM] Found 2 elements with non-unique id

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #546641

    ca1987
    Participant

    I got 4 warnings in my console regarding non unique IDs. It seems to come from the search field which is shown to times in the source code. I guess one for mobile and one for desktop search.

    Attachments:
    You must be logged in to view attached files.
    #546669

    Artem Temos
    Keymaster

    Hi,

    Could you please send us a link to your website where we can see this issue?

    Kind Regards

    #546924

    ca1987
    Participant

    Sure. These messages only seem to appear in chrome. Safari doesn’t show these messages.

    #546942

    Artem Temos
    Keymaster

    Yes, you have two search forms on your website: one in the header and another in the mobile navigation. To remove these messages, you need to disable one of them on your website.

    #547132

    ca1987
    Participant

    OK but if I deactivate the search on mobile, then my customers can’t search on mobile. Is that right or do I understand anything wrong?

    #547255

    Artem Temos
    Keymaster

    Yes, it is right. But you can ignore these messages on your website. They are harmless for your visitors.

    #547372

    ca1987
    Participant

    Wouldn’t it be possible to change the ID for mobile search?

    #547401

    Artem Temos
    Keymaster

    Both searches use the same template file because they are identical. There is no sense in duplicating this code in the theme.

Viewing 8 posts - 1 through 8 (of 8 total)