Overriding MEC Shortcodes Skin
MEC supports many skins for showing events and all of them are override ready! For example if you want to customize the grid skin for MEC, then you can simply put the /path/to/modern-events-calendar/app/skins/grid/render.php into /path/to/theme/webnus/modern-events-calendar/app/skins/grid/render.php
Please Note: /phath/to/theme/ is meaning: ~root / wp-content / themes / YOUR THEME NAME / /… and then create a new folder called webnus e.g for Deep Theme: http(s)://example.com/wp-content/themes/deep/webnus/modern-events-calendar/app/grid/render.php
Please Note: if you use the Modern Events Calendar you need to add ” -lite ” after plugin name, so the path is :
You can do it for all template files of all skins including single skin that is for showing single event page, monthly_view, full_calendar, cover, etc.
BTW, we recommend you avoid overriding the files as much as you can and try to make them compatible with your theme using CSS/JS because if you override the files on your theme, then your clients may not be able to use new features of MEC after the automatic update.
We’ve created two functions for you to put these code on this page or anywhere on your site
$upcoming_events = MEC_main::get_upcoming_events(20); // 20 is number of events $events = MEC_main::get_shortcode_events(6380); // 6380 is the shortcode ID