Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #734240

    Hi,
    on this page: http://www.tenthousandimages.no/nowhere-to-hide-electronic-press-kit/ at the bottom I have used a gallery of images. These images link to a external page / site. To make this happen I have put the url into the custom url field to each image.

    Is it possible to make these external pages open in a new tab or page, so once dont have to leave the original site?

    #734247

    Hey!

    Please enable the custom css class field: http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ and then edit your gallery element and give it a custom CSS class (“your-custom-class” in the example below)
    then add following code to Functions.php file in Appearance > Editor

    function avia_new_link_target(){
    ?>
     <script>
    jQuery(window).load(function(){
    jQuery('.your-custom-class a').attr('target','_blank');
    });
     </script>
    <?php
    }
    add_action('wp_footer', 'avia_new_link_target');

    Best regards,
    Yigit

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