Hi Scott,
Those lines are part of the documentation [ https://docs.miva.com/readytheme-sha...ml#hero-slider ].
Those lines are part of the documentation [ https://docs.miva.com/readytheme-sha...ml#hero-slider ].
You can pass the following settings to change the elements being called by the function: autoStart: false \\ [Boolean] - Set to `true` for automatic cycling carouselDelay: 5000 \\ [Integer] - Set delay between slide display for automatic cycling group: false \\ [Boolean] - Set to `true` to create grouping of elements based on breakpoint groupClass: 'x-carousel__item' \\ [String} - Set the class to be used for element groups groupTiny: 2 \\ [Integer] - Set number of elements to show on screens < 640px groupSmall: 2 \\ [Integer] - Set number of elements to show on screens between 640px and 767px groupMedium: 4 \\ [Integer] - Set number of elements to show on screens between 768px and 959px groupLarge: 4 \\ [Integer] - Set number of elements to show on screens between 960px and 1439px groupWide: 4 \\ [Integer] - Set number of elements to show on screens >= 1440px groupWrapper: 'figure' \\ [String} - Set element to wrap groups with $.hook('carousel').roundabout({ autoStart: false, carouselDelay: 5000, group: false, groupClass: 'x-carousel__item', groupTiny: 2, groupSmall: 2, groupMedium: 4, groupLarge: 4, groupWide: 4, groupWrapper: 'figure' });
$.loadScript(theme_path + 'plugins/slick/slick.min.js', function () { $.hook('featured-products').slick({ ... }); $.hook('hero-slider').slick({ ... });
<div id="js-hero-slider" class="hero-slider"> <div data-hook="hero-slider"> <div><mvt:item name="readytheme" param="image( 'hero_image_01' )"/></div> <div><mvt:item name="readytheme" param="image( 'hero_image_02' )"/></div> <div><mvt:item name="readytheme" param="image( 'hero_image_03' )"/></div> <div><mvt:item name="readytheme" param="image( 'hero_image_04' )"/></div> </div> </div> <!-- end hero-slider -->
<div class="hero-slider" data-hook="hero-slider"> <div><mvt:item name="readytheme" param="image( 'hero_image_01' )"/></div> <div><mvt:item name="readytheme" param="image( 'hero_image_02' )"/></div> <div><mvt:item name="readytheme" param="image( 'hero_image_03' )"/></div> <div><mvt:item name="readytheme" param="image( 'hero_image_04' )"/></div> </div> <!-- end hero-slider -->
Comment