Hi,
I don’t know since when it happens, but i just realized that my portfolio grid won’t open the portfolio in the new tab anymore.
I checked the setting, it still in the setting of open link in the new windows. but not in reality.
Here is my page: http://villabugis.com/our-villas/
Please help.
Regards,
Surya
Hi dewasurya!
Please add following code to Functions.php file in Appearance > Editor
function add_custom_port_target(){
?>
<script>
jQuery(window).load(function(){
jQuery('.grid-entry .inner-entry a').attr('target','_blank');
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_port_target');
Best regards,
Yigit
Hi Yigit,
It turns my whole site to blank..
Hey!
Please go to wp-content/themes/enfold folder and open Functions.php file and remove the code from the file. And please create a temporary admin login and post it here privately so we can add the code to functions.php file for you
Best regards,
Yigit
Hey!
I have placed the code into functions.php file. Please review your website. You may have added the code after closing php tag “?>” which might have caused the issue
Regards,
Yigit
Hi Thanks,
I have another problem for the masonry gallery, I need it to open in the new tab too:
http://villabugis.com/virtual-tours/
Regards,
Surya
Hi!
Please add following code to Functions.php file as well
function add_custom_port_masonry_target(){
?>
<script>
jQuery(window).load(function(){
jQuery('.av-masonry-container.isotope a').attr('target','_blank');
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_port_masonry_target');
I tried to login to add the code but seems like you have removed the user
Best regards,
Yigit
Hi Yigit,
Thank you.. I can make it this time.
I am sure i put the code before the closing php tag.
I was editing the file with notepad++ and it always get my site blank. Now I edit with dreamweaver, not sure what was the difference, but now it works!
Thanks,
Surya