Including The MEC plugin in your Theme

Including the MEC plugin in your theme means for seamless integration of both you need to adjust dummy shortcodes. If you’re going to include Modern Events Calendar in your theme, then please use the following as a guide.

Including MEC in Theme

To include Modern Event Calendar plugin in your theme, you can simply use TGMPA plugin. It works completely fine with this plugin.

For better User Experience, MEC imports events and shortcodes upon activation. If you want to disable this feature for any reason, you can use the two following filters:

Disabling Dummy Events,

add_filter('mec_activation_import_events', '__return_false');

Disabling Dummy Shortcodes (Not Recommended if you’re not going to add your own shortcodes!).

add_filter('mec_activation_import_shortcodes', '__return_false');
10 Comment
Avatar for Doris Cooper
martian February 8, 2020
| |

Hi, How can I remove the view details button from the slider view layout? Also, how to open the events page in a new tab when you click on the View Details button 

Avatar for Doris Cooper
Diane Tucci January 15, 2020
| |

When my events are viewed for more details when clicked on, there is a big black box that you have to scroll down to see the event info. Is there a way to chaneg the height of the box?

Avatar for Doris Cooper
Lynn December 26, 2019
| |

I would like to know if the events page for the free version is supposed to be responsive on mobile devices (phones).  This is what it looks like:  

Avatar for Doris Cooper
Lynn December 24, 2019
| |

Is the events page responsive in mobile devises in the free version of MEC?