Accordion Items have a Blank ID Attribute

Hello, I’m trying to improve the validity of a website’s HTML structure. I have an issue where an accordion item has a blank ID Attribute that cannot be updated.

W3 Issue Title: Bad value “” for attribute “id” on element “div”: An ID must not be the empty string.

Php File Causing Issue: cornerstone/includes/views/elements/accordion-item.php

HTML Code:

Affected Website: https://cbdnj.shop/

Any advice would be appreciated. Thanks!!

Hi @jmg123,

There is an option to add an ID on the Accordion Item. Inspect the Accordion Item > Go to Customize Tab > ID field

Hope this helps.

Ohh duhh, I knew that. Thanks for the help regardless!!

The first page now is 100% valid! Now onto the other 50.

Hi @jmg123,

I’ve added this as an enhancement request to not render the id attribute if it is empty so it can be taken into consideration for future development.

Thank you for understanding,

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.