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

    Hi, Secondary Menu open link in new browser window… if possible?
    best,
    ks

    #275145

    Hey krystians!

    Please add following code to Functions.php file in Appearance > Editor

    
    function add_custom_script(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery(".sub_menu>ul>li>a").attr("target", "_blank");
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_script');

    Best regards,
    Yigit

    #275169

    hello,
    Thanks for your help. Works…
    Best regards!
    krystians

    #275175

    Hey!

    You are welcome, glad we could help! Let us know if you have any other questions or issues :)

    Regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Secondary Menu open link in new browser window’ is closed to new replies.