Sliders plugin will help you to display the event slider on the front end of your website with event image, event title, organizer name, and organizer description. Also, event slider is totally responsive in different devices.
- Automatic Installation: You can install a plugin from the backend of your WordPress. Click Here to see how you can do automatic installation.
- Manual Installation: You can install plugin manually using SFTP or FTP tool as well. Click Here to see how you can do manual installation.
Complete Video Guide On Event Slider Add On
How To Get Event Slider Using Shortcode?
There are two different methods to display the Event Slider on the website.
- The First one is using a shortcode.
- The second one is using a page template.
Here, you can see how to get a slider using a shortcode.
- Go to WP-admin >> Pages >> Add New.
- Name it something along the lines of “Event Slider”.
- Add the below shortcode into the text area of the description box.
- Publish the page.
[events_slider featured=1 limit=5 orderby="rand"]
- featured : Set 1 to show only featured events, 0 to show non-featured events or leave out entirely to show both(Featured & Non-featured).
- limit : Set the maximum number of events you want to display in slider.
- orderby : In which order you want to display the events in slider(Supports – title, ID, name, modified, parent, rand).
How To Get Slider Using Page Template?
- Create a new .php file into the root folder of your theme
- Name it something along the lines of “wpem-slider-template.php”
- Add below code into the file and save.
<!--?php /** Template Name: Slider Template * @since: 1.0.0 */ ?--> <!--?php get_header(); ?--> <!--?php echo do_shortcode('[events_slider]');?--> <!--?php get_footer(); ?-->
Now, go to WP-admin >> Pages >> Add New. Here, you will get “Slider Template” option for Template under “Page Attributes” section at right bottom side of the page. Select that template and publish the page. That’s it! 🙂
For more clarification, see this screenshot:
Frontend view Of The Slider
This is how your slider will look on the front end of your website with the event image, event title, organizer name, and organizer description.
Responsive View Of Slider
Yes, the slider you see here is,b>totally responsive. When your visitors are viewing the website on any of the different devices(tablet, mobile, iPad, etc.), the slider promises to render well without messing up the looks and format of your website.
Advanced: Overriding/Customizing the Template Files
For overriding or customization, template files can be found in the wp-event-manager-sliders/templates/ directory. To override a template file,
- Create directory “wp-event-manager-sliders” under your theme folder
- Copy the template file to “/wp-content/yourtheme/wp-event-manager-sliders/” directory.
- Your theme will use all the template files from the “/wp-content/yourtheme/wp-event-manager-sliders/” directory instead of the plugin’s template file (/wp-content/plugins/wp-event-manager-sliders/).
- wp-event-slider.php – which display event listings with slider.
Remember: If you have overridden template file and plugin frequently updating then you need to sync template file with new updates from the plugin’s template file for better functionality and new features.