• How do I change “Related Products” text to “WE THINK YOU’LL ?”

    Unicode
    ? Full Heart ♥

Viewing 3 replies - 1 through 3 (of 3 total)
  • You can copy file templates/single-product/related.php from woocommerce plugin directory to your theme to woocommerce/single-product/related.php and then you can edit this file.

    hey,

    you can use following code within your theme’s functions.php file:

    ——————————————————————————-

    function srv_related_products_strings( $translated_text, $text, $domain ) {
    switch ( $translated_text ) {
    case ‘Related Products’ :
    $translated_text = __( ‘WE THINK YOU’LL ?’, ‘woocommerce’ );
    break;
    }
    return $translated_text;
    }

    add_filter( ‘gettext’, ‘srv_related_products_strings’, 20, 3 );

    Functions code works great!

    Wordpress 4.7.3
    Woo 2.6.14

    • This reply was modified 7 years, 7 months ago by David Curtiss.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change Related Products text??’ is closed to new replies.