Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #700984

    Hi,

    In the Portfolio Gird, i have set “Open the entry on a new page”, but when i click the portfolio picture, it still open in the same page, i want it to be opened in a new page, please help me.

    Best regards,

    Tommy

    #701751

    Hi Tommy,

    Please send us a temporary admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Regards,
    Rikard

    #701762

    Hi Rikard,

    Please see the information you need below.

    Best regards,

    Tommy

    #702783

    Hi Tommy,

    I have added this code in functions.php (at the bottom):

    function add_custom_script(){
    ?>
    <script type="text/javascript">
    (function($){
    	function newtab() {
    		$(".isotope .inner-entry > a.grid-image").attr('target', '_blank');
    	}
    
    	newtab();
    })(jQuery);
    </script>
    <?php 
    }
    add_action('wp_footer', 'add_custom_script');

    This code allows the portfolio links to open in new tab, just remove it if you don’t want it to open in new tab or want to use the features “Display the big image in a lightbox” or “Open a preview of the entry”. Also I’d like to remind you since you have this customization in files to make a backup and use a child theme so you won’t have any problems losing the customizations during a theme update.

    Best regards,
    Nikko

    • This reply was modified 8 years, 1 month ago by Nikko. Reason: formatting
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.