Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1170032
    bryan1976
    Participant

    Hi,

    Please see my page here http://theaudiobarndev.co.uk/product/kef-reference-5-loudspeakers/

    I would like to make 2 changes:

    1) Remove completely the ‘Related Products’

    2) Rename ‘You may also like’ with ‘Customers also purchased’

    Many thanks for your help!

    Bryan

    #1170053
    Christian
    Moderator

    Hey Bryan,

    1. In Appearance > Customize > WooCommerce, disable Related Products

    2. Please add the code below in your functions.php

    function change_text( $translated_text, $text, $domain ) {
      switch ( $translated_text ) {
        case 'You may also like…' :
          $translated_text = _e( 'Customers also purchased', '__x__' );
          break;
      }
      return $translated_text;
    }
    add_filter( 'gettext', 'change_text', 20, 3 );

    Hope that helps. 🙂

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