Options for shortcode
-
After seeing that others want to use the options without resorting to using the Classic editor to do so, I decided to do some digging. So for reference, here’s the options that you can use in the shortcode:
id
– ID of the carousel. Note: also wraps the carousel with ‘#soc-carousel-[id]’
items
– number of items you want to see on the screen. Default: 4
navigation
– show the navigation. Default: ‘true’
single_item
– haven’t figured this one out. Default: ‘false’
slide_speed
– delay between slides. Default: 300
lazy_load
– lazy load images. Default: ‘false’
auto_height
– auto change the height based on the image shown. Default: ‘true’So for example:
[soc_slider_shortcode id="123" items=1 lazy_load="true"]
will show 1 image per slide and lazy load the images.A shame that we couldn’t have the autoplay option or the ability to define anything from the shortcode.
- The topic ‘Options for shortcode’ is closed to new replies.