Skip to content

Attribute option - add a placeholder for the drop-down select option #545

@nattywebdev

Description

@nattywebdev

When I add an attribute and options to a product, the add to cart form shows the first item in the Select box. I would like to insert a placeholder there instead to make it clear that an option must be selected, for example:

Image

Where would I look to provide this placeholder? I could do it with jQuery but I'd rather have it displayed correctly by the code.

(I'm using Select2 already but don't see a place to add this there.)

Any pointers much appreciate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions