woocommerce/woocommerce

Attribute Select Needs a Unique ID as it conflicts with Theme css and causes duplicate IDS

Fechada

#26.832 aberto em 21 de jun. de 2020

 (12 comentários) (0 reação) (0 responsável)PHP (10.695 forks)batch import
EnhancementGood First IssueKirigamiStore Frontendplugin: woocommerce

Métricas do repositório

Stars
 (10.294 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

Hi

When creating a Attribute . It adds the label name as a ID to the select drop down. This f.e. when calling it logo conflicts with themes that also use a header logo with a id set to logo. Could you please use class names instead of ids and or add a unique identifier to the ID for dropdown select? To avoid doubles id's in pages but also conflicts with themes !

You can not expect every theme to rewrite all there id names because woocommerce is not adding a unique identifier to the Attribute select dropdown.

In Theory any element id a theme or page uses can be replicated by creating a Attribute ! So there can always be a css conflict.

Guia do colaborador