Placing a link (sizing chart) in a variant label

Shopify Partner
22 0 1

Hi, I would like to have a sizing chart link next to the 'label' that says 'Sizing', as is common in many online store layouts.

How can I tell liquid to only insert this link when the label is associated with my sizing dropdown/swatches?

 

Right now I have the following code in my swatches snippet:

 <div class="swatch clearfix">
    {% if settings.swatch_labels_enable %}    
    <label>{{ option }}</label>

    {% endif %}    


I want the following code to be inserted within the label, but only for the label associated with sizing.  

*<a href="#" class="small-caps">Sizing Guide</a>

 

 

Many thanks!

0 Likes