Product Showcase Slider
[sh-slider type="product-showcase"]
Used to display slider of WooCommerce products.
Attributes
filter_by |
latest or post_id or taxonomy |
latest |
Type of filter |
posts |
Comma separated post ids |
Empty string |
Works only if filter_by="post_id" |
taxonomy |
Taxonomy id |
Empty string |
works only if filter_by="taxonomy" |
terms |
Comma separated post terms |
Empty string |
Terms of "taxonomy" attribute value taxonimy. Works only if filter_by="taxonomy" |
number_slides |
Number |
-1 |
Number of slides. "-1" - all slides. |
order_by |
date or see full list of parameters |
date |
If date selected - |
order |
ASC or DESC |
ASC |
ASC - ascending. DESC - descending. |
speed |
Number |
1000 |
Duration of animation between slides (in ms) |
autoplay |
Number |
5000 |
Delay between transitions (in ms). If this parameter is not specified, auto play will be disabled |
autoplay_disable_on_interaction |
true or false |
true |
Set to false and autoplay will not be disabled after user interactions(swipes, arrow and pagination clicks), it will be restarted every time after interaction. |
loop |
true or false |
true |
Set to true to enable loop mode. |
window_height |
true or false |
false |
Set to true if you want slider with height of browser window. |
offset_container |
css selector (e.g. #header-container) |
Empty string |
The height of fullscreen slider will be decreased with the height of these Containers to fit. |
Name | Value | Default value | Description |
Sample
Link
[sh-slider window_height="true" type="product-showcase" filter_by="taxonomy" offset_container="#header-container" terms="promo-gloves"]
Relative Articles
Comments