Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #702308

    Hello
    please add this setting in next updates :
    choice for target : same window or new window above field Link portfolio item to external URL
    it will be helpfull – thxs
    have a nice day

    #702315

    for now, i put this code in Enfold Settings / Google Services / Analytics tracking code
    is it a good solution ?

    <script type = “text/javascript”>
    jQuery(‘.av-masonry-container a’).attr(‘target’, ‘_blank’);
    </script>

    #702515

    Hi,

    It’s not a good solution, you might want to refer to this thread: https://kriesi.at/support/topic/adding-custom-jquery-script-to-child-theme/

    Best regards,
    Nikko

    #702539

    thxs for your quick response
    i put this in my function.php file
    function add_custom_script(){
    ?>
    <script>
    jQuery(‘.av-masonry-container a’).attr(‘target’, ‘_blank’);
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘add_custom_script’);

    but _blank opening is NOT effective

    what doid i miss ?
    thxs for helping

    #703416

    Hi,

    Please use the code as following

    function add_custom_script(){
    ?>
     <script>
    jQuery(window).load(function(){
    jQuery('.av-masonry-container a').attr('target','_blank');
    });
     </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_script');

    Best regards,
    Yigit

    #703708

    Perfect – thxs

    #703758

    Hi,

    You are welcome!
    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Best regards,
    Yigit

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Portfolio items / Extern link / new window’ is closed to new replies.