-
Author
-
September 12, 2017 at 18:18 #173440wilhalphotoParticipant
Hi,
I would like the external link to open on a new tab? How do I do that?
thank you!
-willSeptember 13, 2017 at 17:38 #173560LauraModeratorThis may help 🙂 https://wordpress.org/plugins/wp-external-links/
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
September 14, 2017 at 02:42 #173610wilhalphotoParticipantoh no, another plugin 🙁 I have tons of them already.
Is there another way?thanks!
-whSeptember 15, 2017 at 07:52 #173727LauraModeratorHello, try by adding this to the header.php ( at child theme ) just below <head>
COPY CODE<script> /** * Open all external links in a new window */ jQuery(document).ready(function($) { $('a').not('[href*="mailto:"]').each(function () { var isInternalLink = new RegExp('/' + window.location.host + '/'); if ( ! isInternalLink.test(this.href) ) { $(this).attr('target', '_blank'); } }); }); </script>
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
September 15, 2017 at 16:51 #173794wilhalphotoParticipantHi Laura,
I currently do not have a header.php in my child theme, should i just create a new blank one or should i copy the parents theme and add your code?
thanks!
-willSeptember 16, 2017 at 07:43 #173877LauraModeratorHello, please copy it from the parent 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
September 27, 2017 at 17:03 #174970LauraModeratorAlways happy to help 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.