fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

How to change on product page “Clear” text in product variation swatches

How i can change thiScreenshot_1.jpgs text on color variation swatches? Image bellow. Thank you.

Humayon Kabir

Hello Jovan Radanovicj,

Hope you are well.

Please add the below code in your themes functions.php file in order to change the Clear text on your shop/catalog/archive/product page.

add_filter( 'woocommerce_reset_variations_link', function () {
echo '<li class="reset_variations woo_variation_swatches_archive_reset_variations"><a href="#">' . esc_html__( 'Change Your text here.', 'woocommerce' ) . '</a></li>';
} );

By the way, stay safe and take care of your family. Hopefully, Covid-19 outbreak will end up soon.

Thanks

Hello Mr. Kabir

Thank you for your reply, I am good thank you , I hope you and your family are well too.

Sorry for my late reply, i was inactive past days about this.

Tried to add this in theme functions, but it doesnt work. I still have “Clear” 🙁

Maybe I didn’t add to good functions.php . By the way I using impreza theme from themeforest, Maybe theme by herself making trouble. Do you have another suggestion?

Thank You.

Humayon Kabir

Hi Jovan,

Hope you are well.

Can you please give us temporary admin access to your staging site? We’ll try to investigate the issue for you.

You can add new users by going to Users > Add New set the user and password for us, set the role to admin and set the info here.

And add your staging site URL, login username, and password in the site login area. Follow this guideline: https://www.useloom.com/share/27c1f2ac633c4060b2da883d946107d7

Hope to hear from you soon!

Just to know I create temporary admin for You, so i hope you can help. Thanks in advance.

Humayon Kabir

Hi Jovan Radanovic,

Thank you for getting back to us.

Maybe the theme is preventing to apply the code. Because in our local development with another theme the code is working properly.

Could you send us the latest version of the theme that you are using on your site? We’ll try to investigate your issue by installing your theme on our local setup.

You can upload the theme file in Dropbox or Google Drive and send the download link here directly.

Also, the admin access you have provided does not have any permission to edit necessary files.
In this case, you can provide us with super admin access or FTP access.

Looking forward to hearing from you soon.

Thank you