-
AuthorPosts
-
March 16, 2021 at 3:40 pm #1288550
Hi there,
Under Enfold > Social Profiles > Special: Email Icon – is it possible to have the email open in a new tab? On some devices, it opens up the actual mail application and on some, it opens the online version of Gmail or Yahoo.
Please advise.
Thanks!
March 18, 2021 at 5:40 am #1288883Hi vantagepointmg,
In the Special Icon URL, try putting mailto:
here’s an example: mailto: (Email address hidden if logged out)Hope this helps.
Best regards,
NikkoMarch 18, 2021 at 3:48 pm #1289011Hello Nikko,
I appreciate the reply, however, that’s how we added it to the site and the issue is still happening. Do you have any additional thoughts?
March 19, 2021 at 5:37 am #1289094Hi vantagepointmg,
Can you give us a link to the site? so we can have a closer look.
Best regards,
NikkoMarch 19, 2021 at 3:43 pm #1289208Hi there,
Please see the link in the Private Content.
Thanks!
March 21, 2021 at 10:15 pm #1289525Hi vantagepointmg,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaMarch 22, 2021 at 6:23 pm #1289683Hi there,
Please see the login in the “Private Content”. Thanks!
March 24, 2021 at 9:32 am #1290051Hi vantagepointmg,
I have added this code at the bottom of functions.php:
function mail_in_newtab(){ ?> <script> (function() { var links = document.querySelectorAll('a[href^=mailto]'); links.forEach(function(link) { link.target = "_blank"; }); })(); </script> <?php } add_action('wp_footer', 'mail_in_newtab');This code add target=”_blank” attribute to all links that will use mail.
Please review your site and let us know your feedback.Also, this change I made will be removed during the theme update (overwritten), so I would suggest to use a child theme, which you can download from and find instructions on how to use: https://kriesi.at/documentation/enfold/child-theme/
Then remove the code from the parent theme’s functions.php and add it on the child theme’s functions.php file.Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.
