My events calendar: link styling

Hello! Sorry, I’m trying to setup my m.e. calendar and opening the single events page loads ages befor it opens if I use modal pop-up. If I want to open it as a separate page, I don’t find how I can open the page in a new tab…

Could you help me either by telling me why the modal pop-up (lightbox) takes so long to load OR by showing me how to modify the links so that they open up in a new tab?
Here’s the temporary site: https://martinziaja.de/kalender/

Thanks in advance
Martin

Hello Martin,

Thanks for writing in! Please edit your MEC shortcode. In the MEC shortcode settings, find the “Single Event Display Method” and select “Separate Window”.

ydLfc8TqQOGgwq8F-zWrBA

If this is NOT helping, provide us access to your site so that we can check your settings. Please create a secure note with the following info:
– Link to your site
– WordPress Admin username / password

To know how to create a secure note, please check this out: https://theme.co/docs/getting-support

Regards.

Hi Ruenel,
thanks for your reply! How to swtich between “separate window” and “modal popup” I know. But modal popup takes ages to load (but it does), so I wanted to use “separate window” - but that opens the event on a separate site in the SAME tab. But I wanted to open it in a NEW tab. If you could tell me how to open the event in a new tab, that would be gorgeous…
Martin

Hello Martin,

Since that is the case for you, please set it to “Separate Window” and then go to X > Theme Options > Custom JS and insert this custom javascript snippet:

(function($){
	$(".mec-masonry a").each(function(e){
		$(this).attr('target', '_blank')
	});
})(jQuery);

This snippet will bypass code editing and immediate injects target="_blank" to each of the links in your MEC grid.

We would love to know if this has worked for you. Thank you.

Hi Ruenel,
thanks so much - it works!
Your support team is amazing… :slight_smile:
Have a nice weekend
Martin

You are most welcome Martin!
It’s good to know that it has worked for you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.