Share button - by Ripla - on WordPress WooCommerce support

This topic has 10 replies, 2 voices, and was last updated 7 years, 7 months ago ago by Jack Richardson

  • Avatar: Ripla
    Ripla
    Participant
    August 31, 2016 at 12:28

    HI,

    How do i manage the share button links. The email one is not working correctly

    Thanks

    9 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 31, 2016 at 12:58

    Hello,

    You need edit the file wp-content/themes/royal/framework/shortcodes.php (find the section “! Share This Product” in line 1965), to change links you need edit the code, for example for Twitter <a href="https://twitter.com/share?url='.$permalink.'&text='.$post_title.'" class="'.$tooltip_class.'" title="'.__('Twitter', ETHEME_DOMAIN).'" target="_blank"> and replace https://twitter.com/share?url='.$permalink.'&text='.$post_title.' with a link to your Twitter account.

    Best regards,
    Jack Richardson.

    Avatar: Ripla
    Ripla
    Participant
    August 31, 2016 at 13:04

    Hi

    Thanks for the reply.

    Its the email link i want to correct. My email link when clicked opens a new tab and the url is:

    mailto:enteryour@addresshere.com?subject=Home&body=Check%20this%20out:%20http://www.yorkshirefirewood.co.uk/

    Should this link open the email client so they can send an email. If i change this in the php file will it be overwritten when there is an update?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 31, 2016 at 13:16

    Hello,

    It should open your default mail client also.
    To keep the changes safe you need make them in child theme https://codex.wordpress.org/Child_Themes .

    Best regards,
    Jack Richardson.

    Avatar: Ripla
    Ripla
    Participant
    August 31, 2016 at 13:34

    Hi Jack,

    If it is supposed to open an email client then something is wrong. It is opening a windows tab with the the link in the url as above.

    How do we go about fixing this please.

    many Thanks

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 31, 2016 at 14:07

    Hello,

    Are you checking this in Chrome browser?
    Please check in Firefox.
    Also you can try remove target="_blank" in the code <a href="mailto:enteryour@addresshere.com?subject='.$post_title.'&body=Check%20this%20out:%20'.$permalink.'" class="'.$tooltip_class.'" title="'.__('Mail to friend', ET_DOMAIN).'" target="_blank"> in line 2050 of the file wp-content/themes/royal/framework/shortcodes.php.

    Best regards,
    Jack Richardson.

    Avatar: Ripla
    Ripla
    Participant
    August 31, 2016 at 17:38

    I have tried it in firefox, and it opens up a chrome window tab, does the same thing in MS edge.

    I have also tried removing the target code and same thing happens.

    Any other ideas please

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 31, 2016 at 18:08

    Hello,

    I’ve checked your site and mail icon opens my default mail client. So the problem is on your side.
    Have you installed any mail client on your PC? What client are you using?

    Best regards,
    Jack Richardson.

    Avatar: Ripla
    Ripla
    Participant
    August 31, 2016 at 18:37

    I have ms outlook installed, i think i might know the problem. I need to check with the domain server email as i think it is managed via gmail, even though the email address is a domain one.

    I will report this back if its the case so others will know the reason that function wont work.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 31, 2016 at 19:25

    Hello,

    Ok, looking forward to your reply.

    Best regards,
    Jack Richardson.

  • Viewing 10 results - 1 through 10 (of 10 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.