MEC supports many skins for showing events and all of them are override ready!
How to Override MEC Shortcodes Skins?
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.
Note 1: /path/to/theme/ means: ~root/wp-content/themes/YOUR THEME NAME/… and then create a new folder called webnus.
In example for Deep Theme it would be like: http(s)://example.com/wp-content/themes/deep/webnus/modern-events-calendar/app/skins/grid/render.php.
Note 2: If you use free version of Modern Events Calendar you need to add “-lite” after the plugin name, so the path would be: /path/to/theme/webnus/modern-events-calendar-lite/app/skins/grid/render.php.
You can use overriding Modern Events Calendar shortcodes skin, and 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 it after MEC automatic update.In overriding Modern Events Calendar shortcodes skin feature, 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
I am modifying the monthly_view. Which is a breeze, no problems so far, but the most essential information is missing in the event loop (I’m vardumping $event->data): Categories, Tags and Labels. Which are the most important information in a view that provides an ‘overview’, I think. How do I access those values there? Otherwise a beautiful plugin so far. But missing out on displaying that information would render the whole thing uselesss for me ?
Hello,
please make sure you have the latest version of the MEC.
clear cache and try again.
For troubleshooting, deactivate all your plugins and let the MEC remain active only, set your theme on default, then reload the page, if the issue was solved, then activate your plugins one by one and your theme, refresh your page and check to see which plugin is causing the issue.
if the issue remains, please go to support.webnus.net and there you can log in or sign up. You should sign up with the same email you have created your tickets. Also if have created your tickets using your Gmail account you can simply log in using your Gmail account. If you wanted to create a new ticket, simply head over to webnus.net/support and click on ‘Create a Ticket’ but please do remember to use the same email you created your technical support account with.
support.webnus.net
Hi, I want to display a list of events on a page, with my own SQL request like this one :
$args = array(
‘post_type’ => ‘mec-events’,
‘orderby’ => ‘post_date’,
‘order’ => ‘ASC’,
‘post_status’ => ‘publish’,
);
$my_query = new WP_Query($args);
If I want to display the result on a specific calendar view, how should I do ?
Hello,
You need to do the Customization yourself or you can use our Customization Services.
In order to use Webnus Customization Services for its products, please submit your request via the following link:
After your request is submitted, the developer team will get in touch with you.
https://webnus.net/services/
What line needs to be added to the code to add to the list shorcode the event category? Thanks
Hello,
Doing this is not as easy as we can give you a solution here.
you can use our customization service. You can submit your request for your preferred service via the following URL.
Customization Services Link: https://webnus.net/services/
Our team will get in touch with you via email in the shortest time.
I have been able to create a custom skin using this article for a shortcode skin, but I also want to create a custom template for the single event page. I don’t see a function provided for how to implement this. I assume I create a new file to replace the file at /plugins/modern-events-calendar/app/skins/single/default.php and place it at /theme/webnus/modern-events-calendar/app/skins/single/default.php. What do I put in my functions.php to then enable the new template I have made?
Hello, You can copy the default.php (e.g) and paste in target directory on (on your child theme), so MEC is automatic can read from the child theme (you can edit file here and see changes…). you do not need to add a function.
I believe i figured it out. For the sake of others who might have the same question; no function is required in functions.php. if you create the custom file in your themes path, it will automatically be active. Would be great to have this information in this article. It was hard enough to find this article
Exactly, Thank you for sharing your experience, please feel free to contact us if you have any question about that.
I wanted to override the list skin to make a small change to the events page listings. I followed the instructions by placing a copy of the render.php file in my child theme/path/to/vogue-child/webnus/modern-events-calendar/app/skins/list. Unfortunately, I could not get changes to the render.php in my child theme. Even when I created a line with bad php syntax, I got no errors. It seemed that the file wasn’t being used.
It was after several hours of trying to work out why it wasn’t working, that I realised that because I was using Modern Events Calendar Lite, the file path should be path/to/vogue-child/webnus/modern-events-calendar-lite/app/skins/list.
It would be very helpful if there was a note on the page to give the alternate path when using the lite version.
Hi, Thank you for your comment, yes you right.
We said about it on other posts but, now, I updated this post!
Thanks again 😉