Want To Add Extra Images Per Product Variation? Download This Free Plugin

Show clear link

Anja Nicolajsen

Hi,

How can I change the text “Clear” – I need a Danish word “Ryd”.

 

Br Lars Hansen, Denmark

Alex - Support Engineer

Hi Anja,

Thanks for reaching out to us.

Please try to add below PHP code on your site by using the code snippet plugin.

add_filter( 'gettext', 'anja_variation_swatches_clear_text_change', 20, 3 );
function anja_variation_swatches_clear_text_change( $translated ) {  
    $translated = str_replace("Clear", "Ryd", $translated );
    return $translated;
}

Let me know if this helps.

Thank you.

Anja Nicolajsen

Hi Rezwan,

Super, it’s working, thanks!

Br Lars Hansen, Denmark