 
	
		
		
		
		
			
- 
		AuthorPosts
- 
		
			
				
November 10, 2014 at 8:10 am #348665Hi, 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, 
 SuryaNovember 10, 2014 at 5:17 pm #348879Hi 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, 
 YigitNovember 21, 2014 at 9:27 am #354957Hi Yigit, It turns my whole site to blank.. November 21, 2014 at 5:03 pm #355302Hey! 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, 
 YigitNovember 27, 2014 at 11:06 am #358934This reply has been marked as private.November 28, 2014 at 12:34 am #359272Hey! 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, 
 YigitDecember 1, 2014 at 10:50 am #360689Hi 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, 
 SuryaDecember 1, 2014 at 5:31 pm #360894Hi! 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, 
 YigitDecember 2, 2014 at 3:19 am #361245Hi 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
- 
		AuthorPosts
- The topic ‘portfolio open not in the new tab’ is closed to new replies.
