Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #354434

    Hi!

    Is it possible to open the events in new tabs? The ones in the “Upcoming events” plugin.

    Thank you!

    #355075

    Hey C-LabMX!

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

    function add_custom_event_target(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('a.av-upcoming-event-entry').attr('target','_blank');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_event_target');

    Regards,
    Yigit

    #355434

    Hi Yigit!

    Thanks a lot for the quick response! It didn’t work at first, but I only remove the letter ‘a’ before ‘av-upcoming’ in this line, and works great.
    jQuery('a.av-upcoming-event-entry').attr('target','_blank');

    Thanks again!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Open "Upcoming events" link in new tabs’ is closed to new replies.