"Default Title" Shows up on products with no variant

Emma1903
Excursionist
19 0 5

Hi there - for my store www.peridotfinejewelry.com when a product doesn't have variants it auto-fills with this "default title" option. Screenshot shown below:

 

Elsa_peridotfinejewelry.JPG

 

I can't find in the code where it is auto-filling this information and would prefer that the variant just goes away instead of filling in with this title. Any suggestions?

Reply 1 (1)

ac0
Shopify Partner
51 5 11

What theme are you using?

Shopify's themes normally handle this by default. For example, if you're using the Dawn theme and go to the product-variant-picker.liquid file, they have a line that checks if there's only the default variant.

ac0_0-1706317171788.png

 

Since it seems like your theme might be missing that, you can try to find where the variant picker is being rendered and wrap it with 

 

{%- unless product.has_only_default_variant -%}

....

{%- endunless -%}



DIY theme customization tutorials: https://www.youtube.com/@theprompted