Skip to content

🎁 BFCM is live! Save up to 30% on EComposer and unlock a free Feature Pack. Explore deals

🎁 The4 BFCM: 15% off Athora & Vetro + free homepage setup & 6 months of EComposer Standard free. See the deal

4.93,472 reviews on the Shopify App Store Install free New to Shopify?Open your store

How to add “:” character after variant name in Variant element

On the Variant Picker element, normally, it will show “Color White“, or “Size Uk3” like this:

How to add “:” character after variant name in Variant element — Overview (Screenshot 1)

In case you want to have a “:” character after the variant name, it will show “Color: White“, or “Size: Uk3“. Please open the element setting -> Advance -> Attributes -> Custom CSS for this element to add the below CSS code to:

span.ecom-product-variant--option-label-text:after {
    content: ":" !important;
}

Then this is the result:

How to add “:” character after variant name in Variant element — Overview (Screenshot 2)

Last updated

Was this page helpful?