View Product Page

Shortcode

The shortcode [bestsellers_slider] allows adding a slider with all the best-seller products of your shop on any page of your site.

The available parameter is:

  • limit: this allows setting the max number of Best Sellers shown in the slider.

Example > [bestsellers_slider limit=20]

Your page will now contain a slider like the one in this image:

Shortcode example

To edit the title shown just before the slider starts moving, go to Settings > Advanced options.

Slider title

Parameters of slider

These are all options for the shortcode:

  • animate | possible values ‘yes’ or ‘no’ (default ‘yes’)
  • delay | number of milliseconds after which the animation starts (default 6000)
  • category | the category ID of best-seller products you want to show (default is empty, to show all products of all categories)
  • range | you can override the value of the range set in YITH > Best sellers > settings
  • title | you can override the title slider you set in YITH > Best sellers > settings