Home › Forums › ART WordPress Theme › Get links to open up in a new tab
- This topic has 6 replies, 3 voices, and was last updated 6 years, 8 months ago by
SeaTheme.
-
AuthorPosts
-
June 13, 2019 at 2:11 pm #18729
Hi,
Is there a way to get my links to open in a new tab?
My links are on the bottom of this page for instance: http://test.dianablok.com/ux-portfolio/i-dare-you-to-love-me/
Also i would like to put some (centered) text underneath my contact form: http://test.dianablok.com/contact/
Would that be possible?Thanks a lot!
Greetings
Arjan van AmsterdamJune 14, 2019 at 7:14 am #18740Hi,
1. Install a custom js plugin like Simple Custom CSS and JS, put the javascript codes by this plugin(Custom CSS & JS > Add Custom JS):
jQuery(document).ready(function( $ ){ $('.list-layout-text a').on('click', function() { var url = $(this).attr('href'); window.open(url, '_blank'); return false; }); });2. Please add Text after the Contact form. Set 5cols and offset the same as the Contact form
Regards!
Bwsm – uiueux.com – Twitter – FacebookJune 30, 2019 at 12:37 pm #18863Hi BWSM,
Ik tried the fix you suggested by installing the simple CSS ans JS plugin, and put the JS code you send in there. Still my links are not opening in a new tab…
It seems the _blank function is still not working..See for instance this page: http://test.dianablok.com/ux-portfolio/i-dare-you-to-love-me/
Could you tell how to fix this?
Thanks in advance!!
July 1, 2019 at 12:53 am #18867Hi,
I found some tags turn to other HTML code. Like the
'turn as'. Please check the custom codes again. screenshot: https://drive.google.com/file/d/1eEbyIb-b8c611kIcHI5lUKiIjtwlGyJU/view?usp=sharingRegards
July 1, 2019 at 12:53 am #18868This reply has been marked as private.September 16, 2019 at 6:59 pm #19585Hello,
I do have the same issue with links (social btns, links…) not opening in a new tab (even with the proper “Open in new window” option selected).
I tried the fix mentioned in this post but it’s not working for me.
All the WP and ART theme are up-to-date.
Could you please help me with this?
September 17, 2019 at 4:22 am #19590Hi,
20190917 update: I have checked, the plugin WP Accessibility cause the issue, it removes the target=”_blank” on link
Sure, i need to check website wp-admin.
Please send your question and wp-admin(URL / username/password) to uiueux@gmail.com, I’ll log in to check it.Regards
-
AuthorPosts
- You must be logged in to reply to this topic.
