Home Forums Basel support forum Product size/colour

Product size/colour

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7932

    webtrendz
    Participant

    Hi Guys,

    on the product details page, we have product attributes such as size and colour (http://www.theuniformstudio.com/shop/shirts/grandad-collared-shirt-male) is there any way that i can chance the label “Size” to “Select your size”?

    #7933

    Artem Temos
    Keymaster

    Hello,

    Thank you for the question.

    It can be done with a small code customization. But we see that your website already has these words added before attributes name. Have you already solved this?

    Regards

    #7934

    webtrendz
    Participant

    Hi,

    I have edited the variable-swatches.php file itself by adding “Select your ” before the php code, this is where i edit your code:
    <td class=”label”><label for=”<?php echo sanitize_title( $attribute_name ); ?>”>Select Your <?php echo wc_attribute_label( $attribute_name ); ?></label></td>

    but is there a different way to do this?

    #7936

    Artem Temos
    Keymaster

    Hi,

    Yes, it is a correct solution. There is no other way to add your text there.

    Regards

Viewing 4 posts - 1 through 4 (of 4 total)