Hi all,
how to define a link which should be opened in a new tab?
see https://drive.google.com/open?id=0B0TqEFDVcQi8VnRBZXRTMExIQjA
Thank you for help!
Best regards
Peter
Hey Peter,
Please try adding this at the very end of your themes / child themes functions.php file:
/* Open links in new tab */
function open_new_tab(){
?>
<script>
jQuery(window).load(function(){
jQuery(".av-masonry-entry.isotope-item").attr('target','_blank');
});
</script>
<?php
}
add_action('wp_footer', 'open_new_tab');
Best regards,
If this does not work for you please provide a link to your site where we can see the element in questions to help you better :)
Vinay
Hi Vinay,
thank you for help.
As I can see your solution would work fine when I generally would link to a new window/tab.
But I need a solution which enables my to set _blank and also normal links.
Any idea?
Thank you for help!
Best regards
Peter
Hi,
Unfortunately it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However if its really important for you to get this done, you can always hire a freelancer to do the job for you :)
Best regards,
Vinay
Hi Vinay,
thank you for info.
For my experience this feature would be great for Enfold.
Could you ask for development?
Thanks
Peter
Hi Peter,
You can submit a feature request for it here: https://kriesi.at/support/enfold-feature-requests/
Thanks,
Rikard