Control display by device and page
Control which pages and devices your badge appears on, exclude theme elements, and decide which badge wins when several apply to the same product.
The Display tab of the badge editor decides where and when a badge shows, after the Products tab has decided which products it applies to.
The tab is a list of collapsible sections:
Customer conditions
Which shoppers see the badge (logged in, tags, specific customers)
Page conditions
Which page types the badge appears on
This page
Other conditions
Product image, device, and excluded theme elements
This page
Priority conditions
Which badge wins when several apply to one product
This page

Open the Display tab
Page conditions
By default a badge shows on every page where the product appears. Add a page condition to limit it to certain page types.
How to add a page condition
Choose the page type
Index page
Your storefront home page
Collection page
Collection / category listing pages
Product page
Individual product pages
Article Page
Blog article pages
Blog page
Blog listing pages
Cart page (including cart drawer)
The cart page and the slide-out cart drawer
Search page
Search results pages
Specific pages
Only the exact URL you enter (see next step)

For Specific pages, enter the URL
Choosing Specific pages adds a fourth field. Enter the full storefront URL of the page, for example https://your-store.myshopify.com/pages/summer-sale. The placeholder shows your own store's URL as a guide.

A badge still needs to match the Products tab as well. A page condition narrows where a matching product shows its badge — it never makes the badge appear on products it does not apply to.
Other conditions
Expand Other conditions to control which product image carries the badge, which devices see it, and which theme elements to skip.
Show on (product page)
All images / First image
Show the badge on every gallery image, or only on the first (main) product image.
Device targeting
All devices / Desktop / Mobile
Limit the badge to desktop or mobile shoppers, or show it on all devices.
Do not show label on
CSS class list — .CLASS1, .CLASS2,...
The badge is not rendered on any element matching these classes. Useful when a slider, quick-view, or upsell section in your theme doesn't suit badge placement.

Priority conditions
When several badges match the same product, priority decides which one is displayed.
Badges with priority turned off show as None in the list and are not part of the comparison. If you want one badge to reliably win over another, set a priority value on both.
Priority example
Sale off
0
Shown
Best seller
10
Hidden
Next steps
Change badge position — Adjust where the badge sits on the product image.
Target products — Choose which products display your badge.
Schedule visibility — Set start and end dates for a badge.
Need support?
If you run into any difficulty while following these steps, contact us at support@samita.io.
Last updated
Was this helpful?



