How to create a category slider
The Banner Management for WooCommerce plugin lets you create a category slider and place it on a page or post with a shortcode.
First add product categories with thumbnail images, then create a category slider under Slider Settings, save it, and copy the shortcode.
You can create more than one category slider, each with its own settings, and paste the shortcode anywhere on your site.
In The Article
How to set it up
You create category sliders in Banner Management, under the Slider Settings tab.
Go to: Dotstore Plugins > Banner Management > Slider Settings
After the slider is created, you can filter which categories appear, change their order, set the slider mode, choose a layout preset, and set the thumbnail shape. See How to filter categories in the category slider, How to change the order of slider items in the category slider, How to set slider mode in the category slider, How to set layout preset in the category slider, and How to set thumbnail shape in the category slider.
Step 1: Add a product category
If the categories you want in the slider do not exist yet, add them first:
- Go to Products > Categories.
- In the left section, fill in the fields for a new category.
- Upload a thumbnail image for the category, then add the category.
Step 2: Add a new category slider
- Go to Dotstore Plugins > Banner Management.
- Open the Slider Settings tab.
- On the All Category Sliders screen, click Add New.
Step 3: Configure and save the slider
Configure your slider settings, then click Save Slider.
Step 4: Copy the slider shortcode
Copy the category slider shortcode from the shortcode box. The box includes a Page or Post Include shortcode, such as [wcbm_category id="116"] , and a Template Include PHP snippet if you want to add the slider in a theme template.
Step 5: Paste the shortcode on a page or post
Paste the copied shortcode into a post, a page, or anywhere else on your site where shortcodes can be used.
What the customer sees
On the page or post where you added the shortcode, the customer sees the category slider on the storefront.
Pro Tips
- Upload a thumbnail for each category so the slider has an image to display
- Copy the Page or Post Include shortcode for a page or post, and use the Template Include snippet only if you are adding the slider in a template file
- You can create numerous sliders, each with different settings, for different pages
- After you save the slider, use How to filter categories in the category slider if you want only selected categories to appear
Common Use Cases
Here are some popular ways store owners use this feature:
1. Show Featured Categories on the Homepage
Create a category slider, copy the shortcode, and paste it on your homepage so customers can browse categories quickly.
2. Add a Category Slider to a Landing Page
Paste the shortcode on a campaign or landing page to highlight the categories in that promotion.
3. Create More Than One Slider
Add another category slider with different settings and place each shortcode on a different page.
FAQs
1. Where do I create a category slider?
Go to Dotstore Plugins > Banner Management, open the Slider Settings tab, and click Add New on the All Category Sliders screen.
2. How do I display the slider on my site?
Copy the shortcode from the shortcode box and paste it into a page or post. You can also use the Template Include PHP snippet in a theme template file.
3. Do I need to add categories first?
Yes, the slider displays your product categories. Add or edit categories under Products > Categories, and upload a thumbnail image for each category you want to show.