Shopify Avante Theme: Master Vertical Product Badges on Collection Pages
Hey fellow store owners! As a Shopify migration expert and someone who spends a lot of time digging through community discussions, I often see store owners looking for those little tweaks that make a big difference. Recently, a thread caught my eye that perfectly illustrates this: how to get those product badges to stand out, specifically vertically, and only on your collection pages.
Our friend yonicque, running yonicque.com with the Avante theme, brought up a super common design challenge. They wanted their product badges to appear vertically, but only when customers were browsing a collection page. They'd even tried Shopify's 'sidekick' (likely an app or tool for quick edits) but weren't getting the desired results. It’s a classic case of wanting a specific visual effect without it messing up other parts of your site, right?
The Challenge: Targeted Visual Flair
The core of yonicque's question was about scope: how to apply a design change (vertical badges) to only the collection pages, and not, say, the product detail pages or the homepage. This is where general CSS changes can get tricky, as they often apply site-wide if not carefully targeted. The Avante theme, like many modern Shopify themes, offers a lot of flexibility, but sometimes you need a little custom touch to get it just right.
Yonicque even shared an example of what they were aiming for, which really helps visualize the goal: badges that stand tall alongside the product image, rather than lying flat. This kind of detail can really enhance how new arrivals, sales, or other special product attributes grab a customer's attention.
The Community-Backed Solution: Custom CSS for Avante Collection Pages
Thankfully, the Shopify community is full of brilliant minds! PinFlow jumped in with a perfect, targeted solution that leverages the Avante theme's built-in custom CSS capabilities. The key insight here is that the Avante theme allows you to add custom CSS specifically to the 'Collection page' section within the theme editor. This means your changes will only affect those pages, exactly what yonicque needed!
Let's break down PinFlow's step-by-step guide to achieve those vertical badges. It's surprisingly straightforward once you know where to look.
Step-by-Step Guide: Making Your Avante Badges Vertical
Here’s how you can implement this on your own Avante-themed Shopify store:
-
First things first, log into your Shopify admin. From the left menu, click on Online Store.
-
Next to your active Avante theme, you'll see a button that says Edit theme. Go ahead and click that.
-
Once you're in the theme editor, look at the very top. You'll see a page picker. Click it, select Collections, and then pick any collection to load its page in the preview.
-
In the left-hand panel, click on Collection page. This is crucial because it ensures any custom CSS you add here will only apply to your collection pages.
-
Scroll down the left panel until you find and open the Custom CSS section.
-
Paste the following CSS code into the box:
.card__badges--custom { flex-direction: column; align-items: flex-start; gap: 4px; } .card__badges--custom .card__badges-item { writing-mode: vertical-rl; transform: rotate(180deg); padding: 6px 2px; }What does this code do? It targets the
.card__badges--customcontainer, making its items stack vertically (flex-direction: column). Then, for each individual badge item (.card__badges--custom .card__badges-item), it changes the text orientation to vertical (writing-mode: vertical-rl) and rotates it 180 degrees (transform: rotate(180deg)) to ensure the text reads correctly from top to bottom. The padding adjustment helps with spacing. -
Don't forget the final and most important step: click Save in the top right corner!
Once you've saved, open any collection page on your store, and you should see your product badges now standing upright on the left of each product photo, just like yonicque wanted!
Here's a visual comparison of before and after:
Before: Badges lay flat, taking up horizontal space.
After: Badges are now vertical, creating a distinct look.
It's these kinds of small, thoughtful design changes that can really make your store stand out and improve the user experience. Leveraging your theme's custom CSS features, especially for specific page types, is a powerful way to achieve unique looks without needing to dive deep into the theme's core code. Always remember to make a backup of your theme before making any significant changes, just in case!






