New Landing How can we help? Themeforest Theme Support Dante Replace Leave Feedback text

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Dante
  • #138219
    mimawebseo
    Member
    Post count: 33

    Hi,
    Where do I replace “Leave Feedback” text we have on product pages.

    I used this on my functions.php in the Child Theme to replace “Related Product” text and I dont know if I can do something similar for the Leave Feedback text.

    function sf_text_strings( $translated_text, $text, $domain ) {
    switch ( $translated_text ) {
    case 'Related Products' :
    $translated_text = __( 'My text', 'woocommerce' );
    break;
    }
    return $translated_text;
    }
    add_filter( 'gettext', 'sf_text_strings', 20, 3 );

    thank you

    #138224
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please remove last one code and use this one update code. This code will change both of strings.

    function sf_text_strings( $translated_text, $text, $domain ) {
    switch ( $translated_text ) {
    case 'Related Products' :
    $translated_text = __( 'My text', 'woocommerce' );
    break;
    
    case 'Leave Feedback' :
    //just change Leave Feedback here
    $translated_text = __( 'Leave Feedback', 'woocommerce' );
    break;
    }
    return $translated_text;
    }
    add_filter( 'gettext', 'sf_text_strings', 20, 3 );
    
    

    Thanks
    Mohammad

    #138348
    mimawebseo
    Member
    Post count: 33

    Great!.. thank You

    #138364
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome.
    Happy New Year 2014
    Thanks
    Mohammad

    #254122
    blueseanj
    Member
    Post count: 33

    Hi Mohammad,
    is there any way we can get rid of that leave feedback text from the product??
    Thanks

    #254128
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code:-

    .leave-feedback{
    display:none !important;
    }

    Thanks
    Mohammad

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register