Slide Anything allows you to create a carousel/slider where the content for each slide can be anything you want – images, text, HTML, and even shortcodes. This plugin uses the Owl Carousel 2 jQuery plugin, and lets you create beautiful, touch enabled, responsive carousels and sliders.
Slide Anything provides many Owl Carousel 2 features, which include:
- Touch and Drag Support – Designed specially to boost mobile browsing experience. Mouse drag works great on desktop too!
- Fully Responsive – You can define the number of slides to display for various breakpoint settings, e.g. 4 slides on desktop, 3 slides on tablet and 2 slides on mobile.
- Modern Browsers – Owl uses hardware acceleration with CSS3 Translate3d transitions. Its fast and works like a charm! It also supports CSS2 fallbacks to cater for older browsers.
- Infinite Looping – introduced with Owl Carousel 2, this feature means that the first slide is now seamlessly displayed after the last slide without any carousel rewind.
- Transition Effects – New Owl Carousel transitions include Slide, Fade, Zoom In, Zoom Out, Flip Out X/Y, Rotate Left/Right, Bounce Out, Roll Out and Slide Down.
- Slide Link Feature – A feature which allows you to create a hover-over link button for any slide within your carousels.
- Re-Order Slides Facility – Now you can use a ‘drag-and-drop’ interface to easily re-order your slides within the sliders you create.
- MODAL POPUPS – Each slide can now open a MODAL POPUP, which can be an IMAGE popup, a VIDEO EMBED popup (YouTube/Vimeo), a HTML CODE popup or a popup displaying a WordPress SHORTCODE.
- HERO SLIDER – A Hero Slider is a slider that always is 100% of the width/height of the device it’s being viewed on (or 100% of the window width/height if on a desktop device).
- THUMBNAIL PAGINATION – Allows you to add an area of small clickable thumb images, with each image representing a single slide that can be clicked to navigate to that slide.
- SHOWCASE CAROUSEL – A Carousel with a width exceeding the width of the container that it’s placed in, which results in the left/rightmost visible slides becoming partially visible.
Owl Carousel is an extremely powerful and flexible carousel/slider JQuery plugin, and it is also free to use! Unfortunately, it’s not easy to integrate Owl Carousel into a WordPress site if you are a non-developer, and requires JQuery and PHP coding skills. That is why I developed this plugin.
I use Owl Carousel a in various WordPress sites I develop, specifically where I need the additional flexibility to develop a carousel with a more complex layout, or use a layout not catered for by any existing carousel plugin product.
Please view the FAQ Page for information on how to use
- Upload the entire
slide-anythingfolder to the
- Activate the plugin through the ‘Plugins’ menu within the WordPress Dashboard.
You will now see the
Sliders menu in your WordPress admin panel.
How do I insert ‘Slide Anything’ sliders into my WordPress pages or posts?
There are two ways to do this. If you are using the visual editor to edit a page or post, you will see a
Slide Anything Slidersbutton/icon in the toolbar of the editor. Click this button and a popup will be displayed containing a list of sliders that you have created. Select the title of a slider within this list and click
OKto insert the shortcode for the selected slider into your page or post content.
The other method: When you are editing your slider within the WordPress Dashboard, you will see a box with the heading
Shortcode / Previewon the right-hand side. Click the
Copy to Clipboardbutton within this box to copy the slider shortcode to your clipboard. Paste this copied shortcode into the page or post where you would like your slider to appear. This is also the method to use if you want to insert your slider into a text widget or another custom content type, such as a portfolio post.
The difference between a Slider and a Carousel, and how to create either
By definition a
sliderhas a single slide displayed on-page at a time, whilst a
carouselhas multiple slides displayed ‘on-page’ at a time. The
Items Displayedbox, on the right-hand side of the slider edit page in the WordPress dashboard controls how many slides are displayed on-page at a time.
To define a slider, all the settings within this box must be set to
1. When these are set to values greater than
1, a carousel will be displayed, for example you may want to display a carousel with 4 slides visible on desktop devices, 3 slides visible on tablets and only 2 slides visible on mobile phones.
How do I define slide background images?
Slide Backgroundbox for each slide in your slider allows you to define a background image or a background color for each slide. Note that the content you add to each slide within the slide editor box for each slide is foreground content and sits on
topof the slide background – this content can be other images and textual content.
To set a slide background image, click the
Set Imagebutton. The
Background Sizesetting determines if, and how the background image is stretched/shrunk to cover the slide content area and the
Background Repeatsetting determines if the backgroung image should be repeated, like tiles. The
Background Colorsetting allows you set a color for the slide background – note that you can have both a slide background color AND a slide background image. The small background preview window to the left of these settings give you an indication on how the settings you choose will look.
Min Heightsetting (within the
Slider Stylebox), is often used in conjunction with defining slide backgrounds, as this setting controls how much of the slide background is visible if the slide contains no (foreground) content.
How do I use the ‘Slider Style’ settings?
At the top of this box, which appears on the right-hand side when editing a slider, you can set and copy the CSS
IDfor the slider. This is useful for developers who are familiar with CSS coding, and this CSS
IDcan be used to create custom styles for your slider within your theme or child-theme’s style/CSS file.
Padding (pixels)settings are used to define the amount of padding space around the entire slider – top, right, bottom and left. The
Background/Bordersettings define the background colour for the entire slider (
Note:each slide’s background image/color will appear on top of this slider background), and also if a border should appear around the entire slider – the width, color and border radius of this border.
SLIDE STYLEsettings are the style settings for each individual slide with the slider/carousel. Here you can define the minimum height each slide and also the padding space around each slide.
Using ‘Slide Anything’ with the WordPress Block Editor
Adding a SLIDE ANYTHING slider using the WordPress 5.0 ‘Block Editor’ is pretty straight-forward. You can paste a Slide Anything shortcode into a ‘Paragraph Block’ or use the ‘Shortcode Block’.
Contributors & Developers
“Slide Anything – Responsive Content / HTML Slider and Carousel” is open source software. The following people have contributed to this plugin.Contributors
Interested in development?
- Fixed a bug where the slide ‘MOVE UP’ button strips out some content.
- Removed the ‘Slider Preview’ feature as it was causing issues on some installations of WordPress.
- Discontinued the Slide Anything PRO plugin addon. All of the ‘Pro’ features will now be available within the ‘Free’ version of the plgin offered on WordPress.org. As ongoing developent and support for the Owl Carousel jQuery library (the engine on which Slide Anything is built) is now discontinued, there is a possibility that at some point in the future the Owl Carousel code will no longer work with the later versions of jQuery that may be bundled with WordPress. But I will endevour to keep the Slide Anything plugin running with WordPress as long as possible.
- Updated all PHP code within the plugin to meet the WordPress.org security and coding standards (minor update to ensure PHP function names have a standard prefix).
- Updated all PHP code within the plugin to meet the WordPress.org security and coding standards.
- Fixed a security vulnerability whereby XSS scripts could be inserted within the slider post titles (part 2)
- Fixed a security vulnerability whereby XSS scripts could be inserted within the slider post titles.
- Added the WordPress filter ‘wp_kses_allowed_html’ to allow IFRAME content to be inserted into slide content, which is required to insert YouTube & Vimeo IFRAMEs.
- Another security fix. WPScan notified me of a potential security vunerability where high privilege users (with a role of ‘Editor’ and above) could perform Cross-Site Scripting attacks by inserting malicious scripts within slide content. Fixed by using ‘wp_kses_post()’ function to sanitise slide content before updating sliders.
- Fixed a code syntax error in the security fix I did in release 2.3.41 (oops!)
- Added a new option ‘Don’t use CSS IDs for slides’ – when checked CSS Classes will be used instead of CSS IDs to identify each slide container.
- A security fix to remove a vunerability to SQL injection with the slide duplication function.
- Set the hover title text for slide links to an empty string (i.e. blank)
- Small Bug Fix: Fix the style of the jQuery UI Spinner arrows displayed within the WP Dashboard edit slider page.
- Added ‘aria-label’ and ‘title’ attributes to slide links to improve accessibility.
- Added a new feature ‘Mousewheel Navigation’ which allows previous/next slide navigation using the mousewheel. Removed the ‘Lazy Load Images’ feature, as this is now included in the standard WordPress installation.
- Added the ‘Full Slide Links’ checkbox (under ‘Link/Popup Icons’). When checked then the entire slide area becomes a clickable link.
- Small Bug Fix: The jQuery plugin I use to display the Colour Picker popup (‘Spectrum Colourpicker’) had a small bug in the HTML it was generating and was not displaying the colour pallette correctly.
- An issue exists with Slide Anything within the WP Dashboard when the Yoast SEO plugin is installed, and when previously created created sliders are edited the slide content previously created dissapears. After some investigation I discovered that Yoast SEO is clashing somehow with the ‘Preview Slider’ feature which opens a Popup Preview of the slider within the WP Dashboard Edit Slider page. So as a workaround/solution I detect whether Yoast SEO is installed and then disable the ‘Preview Slider’ functionality if Yoast SEO is installed on the site.
- Changed the order of the items displayed within the ‘Changelog’ so that the most recent changes are displayed at the top of the list.
- Added a new feture to allow you to specify the WordPress image size to use for slide background images. Previously slide background images were all set the the „full“ WordPress image size.
- Added a new feture to set the ‘Starting Slide Number’ for a slider. This sets the Owl Carousel ‘startPosition’ option to set the slide number to display first within the list of slides created for a slider.
- Added 2 new features. The ‘Right to Left Slider’ feature changes the direction of the slider to be right to left. The ‘Disable Preview Feature’ disables the ‘Preview Slider’ button within the SA slider settings page and also disables the auto-generation of the ‘Slide Anything Popup Preview’ WordPress page.
- 2 small fixes. Added transparent (invisible) ‘Previous’ and ‘Next’ text to the Previous & Next arrow buttons so that accessibility errors are no longer generated with accessibility evaluation tools. Do not use the ‘window.dispatchEvent’ function call on IE11 browsers when executing a ‘resize’ event.
- Adding a new Slide Anything global setting which appears under ‘Settings->Writing’ within the WordPress Dashbaord. This is a checkbox setting called ‘Disable TinyMCE Button’, and when checked the ‘Slide Anything Sliders’ button within the toolbar of the WordPress Classic Editor when editing pages and posts will be disabled. This TinyMCE button is causing issues on some sites, and adding the facility to turn off this button resolves this issue.
- When thumbnail pagination and popup options are used together (PRO version only) there was an issue – the popup images or popup YouTube video thumbs were not be used to set the thumbnail images.
- Small Bug Fix: If the ‘lazy load images’ option was enabled and a slide content was blank then a PHP warning message was being displayed.
- Small Bug Fix to fix a conflict with the ‘Photonic Gallery & Lightbox’ plugin. The slide ‘Add Media’ button was not working when this plugin is installed.
- Small Bug Fix: The Re-Order slides page was displaying a PHP warning notice on sites with PHP 7.4.
- Small Bug Fix to fix a clash with the ‘Woody Snippets’ plugin within the WordPress Dashboard
- Small Bug Fix to remove PHP Notice (warnings) within ‘slide-anything-admin.php’ for possible undefined indexs for ‘popup_type’, ‘popup_video_type’ and ‘popup_video_id’
- Added a new feature ‘Slide Goto Links’, which allows the creation of links (or buttons) that when clicked will go to a specific slide within your slider.
- Fixed an issue with the slider arrows that occurs when multiple Showcase Carousels (SA PRO) are displayed on a page.
- Small Bug Fix: Click to Advance feature was not working properly with multiple sliders on the page
- Small Bug Fix: Using the Slide Anything shortcode with an incorrect ID sometimes did not display an error message – this has been resolved
- Added ‘Click to Advance’ feature which when enabled allows users to click on the slider to advance it one slide
- YouTube popups now set the slide background to the YouTube thumbnail by default
- Minor bug fix: PHP ‘Undefined Index’ warnings were sometimes displayed after upgrading to Slide Anything PRO (and the slider was created using the Slide Anything FREE plugin)
- Added a new feature (checkbox) to vertically center content within slides.
- Couple of small bug fixes: Undefined index error for ‘popup_shortcode’ vairables and hide „SA PRO’ advert for non-admin users.
- CSS Style changes for some of the WordPress Dashboard input elements (in response to to the WordPress 5.3 update which changed some default Dashboard styling)
- Added the ‘Use UL and LI Containers’ checkbox which when checked, ‘UL’ is used as the DOM element for ‘owl-stage’ and ‘LI’ is used as the DOM elements for ‘owl-item’
- Added the option to bulk delete slides within the ‘Re-Order Slides’ page
- Added the ‘Show 1 Dot Per Slide’ checkbox option which when checked displays 1 pagination dot per slide (instead of 1 pagination dot per page of slides)
- Added the ‘Re-Order Slides’ sub-page, which allows one to easily change the order of slides within a Slide Anything slider with a ‘drag-and-drop’ interface
- Added a ‘Duplicate Slider’ facility so that sliders created can be duplicated or backed-up
- Added Slide Any Post promotional meta box & fixed a couple backend aesthetic issues
- Bug Fix: Fixed ‘undefined index’ error that sometimes occurs on the WordPress backend when saving Showcase Carousel fields
- Bug Fix: Fixed issue with ‘Autohide Arrows’ not working properly with Showcase Carousels
- Removed the change added in version 2.2.8 (so reverted back to version 2.2.7)
- Bug Fix: Omit DOCTYPE from HTML front-end code generated.
- Added Showcase Carousel support, which is a new Slide Anything PRO feature.
- Bug Fix – Fixed the PHP Warning „explode() expects parameter 2 to be string, array given in wp-content\plugins\slide-anything\php\slide-anything-admin.php on line 824“ some users were experiencing.
- Bug Fix – Optimise front-end code so that no ‘background’ CSS rules are displayed if the user does not specify a background image/colour for the slide.
- Bug Fix – Do not display the PRO upgrade notice within the WordPress Dashboard if you have already upgraded to the PRO version.
- Bug Fix – Resolved small non-fatal issue to remove „Notice: Undefined index: ../php/slide-anything-frontend.php on line 66“ message.
- Bug Fix – Issue with „Thumbnail Pagination“ data being saved on ‘Non-PRO’ installations – causing a fatal error.
- Bug Fix – Issue with „Lazy Load Images“ feature, and when enabled UTF-8 encoding was broken. Resolved.
- Added Hero Slider and Thumbnail Pagination support, which are Slide Anything PRO features.
- Bug Fix – There was an issue on mobile phones when autoplay is disabled, and when you swipe to change current slide then autoplay starts up. This has now been fixed.
- Added a new feature to facilitate owl-carousel ‘Lazy Load’ images. With this feature enabled, slide images ( tags) are only loaded when the relevant slides are displayed (all of the slider’s images are NOT loaded up-front).
- Small bug fix that relates to Slide Anything PRO only: Sliders with ‘autoplay’ enabled were re-starting autoplay when popups were closed.
- Upgraded to the latest version of Owl Carousel (version 2.3.4). Set the ‘Mouse Drag’ option to disabled by default. Mouse dragging when enabled affects vertical touch-drag scrolling on mobile devices.
- Bug fix – An array initialisation was causing a crash on hosts using a PHP version prior to 5.4. Changed this array initialisation to now be backwards compatible.
- Fixed a bug that occurred when migrating a WP site to another domain location (e.g. transferring a staging/test WP site to a Live WP site). The SA slider would not work on the new domain unless it was re-saved in the back-end. This has now been fixed with this release.
- Minor bug fix for the new ‘Use window.onload event’ checkbox setting.
- Added the Slide By ‘page’ option, which is set by setting the ‘Slide By’ slider input to 0.
- For Slide Anything PRO YouTube video popups, added the ‘rel=0’ paramerter so that related videos are not displayed at the end of a video playback. This has been requested quite a bit, and I have modified the ‘Magnific Popup’ code so that this parameter is added to the iframe code generated.
- Minor bug fix with new ‘Auto Height’ feature
- Added a new ‘Auto Height’ feature, which automatically resizes the height of the slider according to the current slide’s height.
- Bug Fix – Issue with using shortcodes within slides. Certain shortcodes can only be displayed on the front-end (i.e. required resources are only loaded on the front-end), so the ‘Preview Slider’ feature on the Edit Slider page was causing issues for these shortcodes. So I have displayed this ‘Preview Slider’ feature for sliders where the ‘Allow Shortcodes’ checkbox is checked.
- Upgraded Owl Carousel from version 2.3 BETA to version 2.3.3 (production release)
- Minor bug fix with Slide Anything PRO Software Licensing integration
- Added a new feature to allow you to set slider minimum height in pixels
- Added a new feature so that each slide within a slider has its own unique CSS ID
- Bug Fix – Owl Carousel changed the CSS Style used for slide images in version 2.3. Changed the CSS style for images back to what was used in version 2.2.1 of Owl Carousel, so that sliders already created on sites continue to look the same.
- Replaced ‘Owl Carousel 2.2.1’ with ‘Owl Carousel 2.3 BETA’.
- Upgrading Owl Carousel fixes an issue with Slide Anything that has been reported to me on numerous occasions – namely if you switch TABS within your browser, switch to another application, or minimise your browser window, then the Slider/Carousel stops (i.e. no more transitions), and the page needs to be reloaded to ‘restart’ the slider.
- Although a BETA, version 2.3 seems pretty stable, and OC has been sitting at version 2.1.1 for over a year now.
- Minor Bug Fix
- Added a new ‘Slide By’ setting to set the number of slides to slide per transition
- Modified plugin so that WordPress users with an ‘Editor’ role can save/update sliders
- Fix for using shortcodes inside of anything that already hooks into ‘the_content’
- Bug Fix – Fixed a clash with the ‘Envira Gallery’ plugin
- Bug Fix – Changed the location where the jQuery script is enqueued
- Minor Bug Fix
- Added new ‘Reverse Order’ Checkbox to backend editor, which reverses the order of the slides created
- Added a ‘Preview Slider’ button to the backend editor – when clicked a popup modal is displayed containing a preview of the Slide Anything Slider
- Minor bug fix
- Removed Owl Carousel 2.0 URL Hash Navigation feature
- Increase number of slides allowed from 50 to 99.
- Added Owl Carousel 2.0 URL Hash Navigation feature
- Minor bug fixes
- Fixed bug with slide ‘min-height’ percentage calculation.
- Fixed CSS bug with slide images (IMG tags) being resized to 100% of slide width.
- Removed array dereferencing from PHP code, which causes a fatal error on web hosts using a PHP version prior to version 5.4.
- Some small ‘post version 2’ bug fixes.
- Some required CSS files were missing from the WordPress repository and therefore ZIP download. Quick patch to rectify this.
- Rebuilt Slide Anything using Owl Carousel version 2.
- Bug Fix: Fixed minor issue with IE 10 and IE 11 – the ‘fade’ and ‘fade up’ transition effects were not working.
- Bug Fix: Fixed minor issue when editing slide content within the WordPress Dashboard using the Text Editor. If HTML tags are not properly closed, then this was causing an issue – added the WordPress ‘balanceTags()’ function to correct this issue.
Slide Transitionsetting to set the transition of 1-Items Sliders to a ‘fade’, ‘backSlide’, ‘goDown’ or ‘fadeUp’ transition effect
- Added checkboxes to enable/disable
- Some small bug fixes
- Bug Fix: Fixed issue with some HTML elements/attributes being stripped out when certain shortcodes are used within slide content – found an alternative to KSES sanitization for slide content.
- Added a new dropdown option ‘Background Position’ for the slide background of each slide
- Bug Fix: Added
Allow Shortcodessetting. Running shortcodes within
Slide Anythingmay cause issues with some WordPress Page Builders, and disable this setting will resolve this issue if it occurs.
- Added a new
Items Displayedsetting to set the number of slides to be displayed on screen resolutions over 1400 pixels
- Added a new
Autohide Arrowssetting to enable/displayed the autohide feature for slider navigation arrows
- Added setting to add a margin left and right of each slide
- Added a button to the visual editor on pages and posts which displays a list of all sliders you have created, allow you to select a slider and the corresponding shortcode is automatically inserted into your page or post.
- Added the ‘Random Order’ checkbox to the edit slider page, and when checked slides will be randomly re-ordered whenever the slider is displayed
- Fixed issue with the ‘delete plugin’ function, which was crashing
- Added a slider preview feature to the slider edit page – pressing the ‘Preview’ button displays the slider within a popup window.
- Initial release of this plugin.