Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1296645
    intveld
    Participant

    Hi guys,

    I would like to change the text in a button on my product page (WooCommerce). The text is translated in Dutch.
    I work with Attributes (Size). And where you see ‘Een optie kiezen’ I would like to see ‘Kies je maat’. See the attachment.

    Do you know how I can change this text?

    Thanks,
    Ton

    #1296651
    Thai
    Moderator

    Hi There,

    Please provide us with your website URL so we can take a closer look.

    Thanks.

    #1296696
    intveld
    Participant
    This reply has been marked as private.
    #1296888
    Rue Nel
    Moderator

    Hello There,

    Thanks for providing the url. Since the child theme is set up, please add the following code in your child theme’s functions.php file

    // Translate texts
    // =============================================================================
    function translate_texts($translated) { 
      $translated = str_ireplace('Een optie kiezen', 'Kies je maat', $translated);
    
      return $translated; 
    }
    add_filter('gettext', 'translate_texts' );
    // =============================================================================

    Hope this helps. Kindly let us know.

    #1298524
    intveld
    Participant

    Helemaal goed = great!

    Many thanks.
    Happy holidays!

    Ton

    #1298540
    Joao
    Moderator

    Glad to hear it and happy holidays for you as well! 🙂

  • <script> jQuery(function($){ $("#no-reply-1296645 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>