Product slider displays selected products as rotating images with additional information. With Toolset, you can create sliders with custom design and set of fields.
In this lesson, you will learn how to create a slider with featured products. Each of your slides will include some of your standard WooCommerce fields and also your custom taxonomy.
Steps for creating product sliders
Create a View for displaying products
- Edit or create a page and insert the View block.
- In the View-creation wizard, enable Pagination and in the Select View Loop Style section, choose the Unformatted (last) option.
- In the last step of the wizard, select Products as your post type.
Display product fields and apply custom styling
- Insert a Container block and set its background to Image.
- Make the image dynamic and link to the post’s featured image.
- Use Toolset Heading, Single Field, and WooCommerce blocks to add other dynamic fields to your slider, such as the post title, product categories or your custom taxonomy.
Make your View slide automatically
- Use the Block Navigation button to select the main View block.
- In the right sidebar, expand the Pagination section.
- Select the Pagination enabled with automatic AJAX transition option.
- In the Items Per Page dropdown, select 1. You can also tweak other options like the transition effect and duration.
Add filters to your slider
By deafult, your slider will display all products from your site. You can limit the products by setting up filters.
- Use the Block Navigation button to select the main View block.
- In the right-hand sidebar, expand the Content Selection section.
- Add one or more filters of your choice.
Hint: If you want to select only featured products (the ones you mark using stars in your WooCommerce backend list), you would need to use the Product Visibility filter set to featured. Please note that « Visibility » is a hidden taxonomy and you would need to enable. To do this, go to the Toolset → Settings page, click the Front-end Content tab and under the Hidden custom fields section click the Select custom fields button.
Change the pagination to dots
- Click to select the View’s Pagination block.
- In the right sidebar, change pagination controls from numbers to dots.
- Additionally, you can expand the Advanced section and center align the pagination controls.
Créez des listes de publication personnalisées
Related topics
- Assigning Templates to Posts Conditionally
- How to Display WooCommerce Orders on the Front-end
- Using the WooCommerce Subscriptions plugin with Toolset
- Using WooCommerce Fields in Product Forms
- Selecting WooCommerce Blocks Output Type
- Adding Toolset Blocks to the WooCommerce My Account Page
- Creating a Custom List of WooCommerce Products for a Taxonomy
- Building a Custom WooCommerce Shop Page
- Creating a Page with a Custom WooCommerce Product Search
- Creating a Custom List of Related WooCommerce Products
- Creating Custom Templates for WooCommerce Products
- Adding a Custom Taxonomy to WooCommerce Products
- Adding Custom Fields to WooCommerce products
- Creating Front-end Forms for Adding WooCommerce Products
- Charge users for registering premium accounts
- Charge users for submitting content
- Custom WooCommerce Roles and Admin Capabilities