redirect when clicking on event in grid format

[ad_1]

For external events (events not on my website) I change the links to open in a new tab (target=”_blank”). This works fine in list mode but in grid mode it opens the link in a new tab but the current tab also gets redirected. This is due to the following code in events-manager.js

    $(document).on('click', '.em-grid .em-item[data-href]', function(e){
        if( e.target.type !== 'a' ){
            window.location.href = this.getAttribute('data-href');
        }
    });

I would like this to be removed so I don’t have to remove it each time there’s a new release of the plugin.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer