This topic has 10 replies, 2 voices, and was last updated 7 years, 7 months ago ago by Jack Richardson
HI,
How do i manage the share button links. The email one is not working correctly
Thanks
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.
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?
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.
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
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.
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
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.
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.
Hello,
Ok, looking forward to your reply.
Best regards,
Jack Richardson.
You must be logged in to reply to this topic.Log in/Sign up