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

    Hi,

    I have the magazine layout in my site and after reading the enfold documentation I copied the following code, as instructed to in the docs.

    //——————————
    // php – open Magazine link in new tab
    //——————————

    function mag_new_tab(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery(‘.av-magazine-title a ‘).attr(‘target’,’_blank’);
    });
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘mag_new_tab’);

    I added this code to the functions.php in my child theme and yet after clearing the cache on my site and the browser, the posts are still NOT opening in a new window.

    Any suggestions?

    Thank You,

    Joe

    #1258414

    Hey Joe,

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

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