I need to hide “Email to a friend” - by Maria frendel

This topic has 5 replies, 2 voices, and was last updated 9 years, 7 months ago ago by Eva Kemp

  • Avatar: Maria frendel
    Maria frendel
    Participant
    May 16, 2015 at 14:12

    I need to hide “Email to a friend” woocommerce product page function.
    Ex: http://www.vaskbutiken.se/produkt/tuscany-leather-portfolj-san-gimignano-tl141340/
    I tried this in custom.css file:
    a.email-link {
    display: none;
    }
    But it took away the possibility to choose color “För att handla, välj färg….” in Swedish.

    Can you help me please?
    Thanks.

    4 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    May 18, 2015 at 08:36

    Hello,

    You can remove that link in the file wp-content/themes/royal/framework/woo.php (line 840).

    Regards,
    Eva Kemp.

    Avatar: Maria frendel
    Maria frendel
    Participant
    May 18, 2015 at 18:24

    Hi.

    when i remove the link, i go the same problem as before with to choose color
    The text Email to a friend is easy to take awey vid po files, ut the picture off the letter is still there.
    What to do i copyd the function below?

    if(!function_exists(‘et_email_btn’)) {
    function et_email_btn($label = ”) {
    global $post;
    $html = ”;
    $permalink = get_permalink($post->ID);
    $post_title = rawurlencode(get_the_title($post->ID));
    if($label == ”) {
    $label = __(‘Email to a friend’, ETHEME_DOMAIN);
    }
    $html .= ‘
    ‘.$label.’‘;
    echo $html;

    }
    }

    Avatar: Maria frendel
    Maria frendel
    Participant
    May 18, 2015 at 20:04

    I solved it, not beautiful :

    if(!function_exists(‘et_email_btn’)) {
    function et_email_btn($label = ”) {

    $label = ‘ ‘;
    }
    $html .=
    $label;

    echo $html;

    }
    }

    Avatar: Eva
    Eva Kemp
    Support staff
    May 19, 2015 at 08:34

    Hello,

    So do you need further assistance?

    Thank you.
    Regards,
    Eva Kemp.

  • Viewing 5 results - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.