How to make category slider as a card/flat style
In the category slider, you can present category content in a card-style block using the Make it Card Style option in the Display Options tab.
When the option is enabled, you can set a border (including style, color, and hover color), a background and hover background, and inner padding in px or em.
After you save the slider, category content appears in that card style on the storefront.
In The Article
How to set it up
You turn on card style in the category slider’s Display Options tab, using the Make it Card Style option. This shows all the content of your categories in a single block like a card.
If you still need to create a category slider, see How to create a category slider. To customize the category name, product count, and description inside the card, see How to manage or customize category content in the category slider.
Step 1: Open Display Options
- Open the category slider in Dotstore Plugins > Banner Management > Slider Settings.
- Open the Display Options tab.
- Find the
Make it Card Styleoption.
Step 2: Enable card style and customize it
Turn Make it Card Style on. A few more options appear so you can customize the card:
Border (px)– Set a border around the category content, including the width on each side, the border style, the color, and the hover color.Background– Set the category content background color and the hover background color.Inner Padding– Add padding between the category content and the border. You can set the padding on each side in px or em.
Step 3: Save the slider
Save the slider so the card style is used on the storefront.
What the customer sees
Category content is shown in a card-style block, using the border, background, and padding you set. Hover styles apply when the pointer is over a card.
Pro Tips
- Enable Make it Card Style when you want category content grouped in a single card-like block
- Use the border style, color, and hover color to match the card to your store design
- Set Inner Padding in px or em so the content is not tight against the border
Common Use Cases
Here are some popular ways store owners use this setting:
1. Show Categories as Cards
Turn Make it Card Style on so each category’s content appears in a single card-like block.
2. Add a Colored Border and Background
Set Border (px) width, style, color, and hover color, then choose a Background and Hover Background.
3. Increase Inner Padding
Use Inner Padding to add space between the category content and the border, in px or em.
FAQs
1. Where is the card style option?
Open the category slider, go to the Display Options tab, and use Make it Card Style.
2. What settings appear when I enable Make it Card Style?
You can set Border (px), including style, color, and hover color; Background, including hover background; and Inner Padding in px or em.
3. Does card style change the category name or description?
No. Card style controls the card block (border, background, and padding). To show, hide, or style the name, product count, and description, see How to manage or customize category content in the category slider.