Support » Fixing WordPress » Recent Comments widget duplicate IDs

  • I use the Recent Comments widget in two places on my website: the sidebar and footer. When I validate my site with, among the errors is “Duplicate ID: recentcomments.”

    Would it be practical to redesign the widget so that it adds a number to each incidence of the ID to make it unique?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p


    Does the error goes away if you momentarily switched to the default theme (Twenty Nineteen) with ALL plugins deactivated?

    Well, the widget itself has a number added. But the inner ul has an ID, not sure why.
    Could you write a ticket for this? (search to see if it exists already)

    Thread Starter mbrailer


    t-p, good suggestion. I put my site in troubleshooting mode (all plugins off, default theme) and the Recent Comments widget still has <ul id="recentcomments">

    As an experiment, I added the Recent Comments widget to the footer a second time. Both incidents of the widget had <ul id="recentcomments">

    Thanks to Joy for pointing out the numbering in the widget. I’ll take your advice and see if this is already reported.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Recent Comments widget duplicate IDs’ is closed to new replies.