When we began building the ELSEAPPS website we auditioned a large number of WordPress slider plugins – you can read about that experience here. Ultimately we decided the only way to get the features we wanted was to write our own, and that’s how sliderMonial was born.
The features we wanted were all available, but not all in the same plugin:
- Structured content using WordPress posts and categories.
- Use single or multiple categories in any slideshow.
- Easy formatting of testimonial quotes and attributions.
- Position each slide’s text content on any edge.
- Set each slide’s semi-transparent mask colour to match the image.
- Easy implementation with shortcodes.
- Ajax cycling of slides for quick page loading.
sliderMonial also has features we’re not planning to use at this stage, such as supporting multiple instances per page. Here’s an example of it action.
How to use it
Set up a post category and populate it with two or more slides. Each slide must have a Featured Image, and the text content must use the sliderMone shortcode:
[sliderMone position="bottom" colour="ca5399" author="Leigh Harrison" link="http://www.elseapps.com/"]I found this very useful.[/sliderMone]
- position can be top, right, bottom or left: wherever you want the text to be aligned.
- colour is the hex value of the semi-transparent mask that will be created under the text. Note that the leading hash must be omitted.
- author is the name of the person the testimonial is attributed to.
- link is the URL of the page to open when the slide is clicked.
- The quote itself is the shortcode’s content.
Having created some slides, you can insert a slideshow into a post using the sliderMonial shortcode. Here’s the actual shortcode used on this page:
[sliderMonial category="14,15,16,17,18,19" interval="2000"]
You can have one or more categories; the interval is in milliseconds; if you want to use more than one slider on a page, add a unique id parameter as well.
I’ve not packaged sliderMonial as a plugin, but it does come with two short codes and instructions on implementation. And – you guessed it – these are the instructions.
The zip file contains
- sliderMonial.php to put in your WordPress theme folder.
- ADD-TO-functions.php to append to the functions.php file in your WordPress theme folder.
- ADD-TO-style.css to append to the style.css file in your WordPress theme folder.
- sliderMonial.js to copy to the /js subdirectory of your WordPress theme folder.
How it works
However much you revise it, we’d appreciate it if you’d leave the credits in the files. Enjoy.