Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #676300

    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

    #677985

    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

    • This reply was modified 8 years, 4 months ago by Vinay.
    #679891

    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

    #680945

    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

    #681199

    Hi Vinay,

    thank you for info.

    For my experience this feature would be great for Enfold.
    Could you ask for development?

    Thanks
    Peter

    #681574

    Hi Peter,

    You can submit a feature request for it here: https://kriesi.at/support/enfold-feature-requests/

    Thanks,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.