Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1137786

    Wondering how I can rename the wording from Clear to my own words on the Variation option to Clear them.

    Currently I have this for resizing it, but can you please help with the renaming of the wording

    /*Change color etc Reset Variation*/
    a.reset_variations {
    font-size:18px;
    }

    Also at the moment it sits under the description box.
    Is it possible to move to the under the variation options
    Thanks

    #1138501

    Hey wealthyone,

    Try adding this code on your child theme’s functions.php (just replace the word Clear):

    add_filter('woocommerce_reset_variations_link', 'replace_clear');
    
    function replace_clear() {
    	return '<a class="reset_variations" href="#">' . esc_html__( 'Clear', 'woocommerce' ) . '</a>';
    }

    Best regards,
    Nikko

    #1138511

    Thanks Nikko
    Every time you help me, I hit a home run, as every time you are spot on. Thanks..

    Is it possible to move to the under the variation options?

    #1138523

    Hi wealthyone,

    Thanks for your kind words, and we’re just glad that we could help :D
    Try adding this css code in Quick CSS, located in Enfold > General Styling:

    #top table.variations td.value {
        position: relative;
    }
    
    #top .reset_variations {
        bottom: -15px;
        right: 50px;
    }

    just adjust the bottom and right values as you see fit.

    Best regards,
    Nikko

    #1138524

    Again. Perfect. Thankyou very much Nikko

    #1138525

    Hi wealthyone,

    We’re glad that we could help :)
    Thanks for using Enfold and have a great weekend :D

    Best regards,
    Nikko

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Rename Reset Variation option’ is closed to new replies.