The most manageable way to add sale, new, featured, or custom labels is to use a product-badges extension: install it, open Products > Badges, create a badge, and assign display conditions. Developers can change the built-in sale wording with WooCommerce filters, while CSS controls appearance rather than product assignment.
Choose the right way to add badges
| Method | Best for | What you control | Trade-off |
|---|---|---|---|
| Official WooCommerce Product Badges extension | Store owners who want an admin interface | Badge types, conditions, scheduling and placement | Requires installing the extension; current pricing is not stated here |
| Product Badges and Labels extension | Promotions using dynamic text, images or countdowns | Global rules, customer roles, date windows and pricing variables | More settings to configure; current pricing is not stated here |
| PHP filters | Developers changing sale text or markup | Rendered text or HTML | Requires PHP and theme-compatibility knowledge |
| CSS | Visual adjustments | Size, color, spacing and position | CSS does not reliably decide which products receive a badge |
Add badges with an extension
1. Install and open the badge manager
- Install and activate the official Product Badges extension, or the Product Badges and Labels extension if you need its additional rule and dynamic-content features.
- In the WordPress dashboard, go to Products > Badges.
- Select Add New.
The badge appears on products that meet the display settings you save. Exact labels can vary slightly by extension version.
2. Choose the badge format
Depending on the extension, create a badge as:
- Text: for labels such as “New,” “Sale,” “Featured” or “Limited stock.”
- Image: upload your own artwork or choose a predefined promotional image.
- Countdown: show an offer that ends at a configured date and time.
- Code or HTML: create a fully custom badge when the extension supports custom markup.
Product Badges and Labels can insert dynamic pricing tags, including {percentage}, {discount}, {price}, {saleprice} and {delprice}. These are useful for labels such as “Save {percentage}%” or “Now {saleprice}.”
3. Set the appearance and placement
Configure the label content, text and background colors, dimensions, padding, border radius and position over the product image. Preview the badge on both product cards and the single-product page if your theme displays it in both locations.
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallOutdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware match#1 Best Overall
- BRIGHT AND COLORFUL: With 16 vibrant colors(3"x2"), our rainbow name tags are sure to make people happy. Use them to organize and identify items and stay on top of your game!
- HIGH-QUALITY PRINTING: Our name tags are printed on high-quality, non-toxic paper and ink. They are waterproof, odorless and eco-friendly, and you can write on them with a marker pen.
- EASY TO USE: Unlike roll labels, our name tags come in sheets and are easy to peel from the backing. Stick them where you need them and remove without leaving residue. Great for clothes and surfaces.
- VERSATILE: Our name tags are not just for name tagging! They can be used for labeling backpacks, school books, school supplies, mailing labels, birthday labels, baby bottle labels, and more. Perfect for parties, conferences and events.
- GREAT VALUE: With 400 pieces in total (25 sheets x 16 colors), you get a lot of name tag labels for your money. Plus, our friendly customer service is available 24 hours to ensure your peace of mind. Our product picture will look bigger in order to emphasize the product features, please refer to the actual size for your purchase. If you are confused about the size, you can consult our customer service before purchasing.
Show a badge only on selected products
Use specific products
Choose a Specific Products condition and select the products that should receive the badge. This is the most direct option for hand-picked launches or clearance items.
Target a category or tag
Select Product Category or Tag to apply one badge to a managed group. Updating the category or tag then changes badge eligibility without editing every product.
Use product status and catalog properties
Available conditions can include On Sale, Featured Product, product type, price, stock status or quantity, shipping class and total sales. Use the narrowest condition that matches the campaign so unrelated products do not inherit the label.
Rank #2
- No need to worry about name tag stickers curling or falling off with these flexible name badges designed to move with clothing
- Perfect for both personal and professional use, these self-adhesive rectangular labels are great to use as name tags for meetings, trade show badges, storage organization labels, classroom tags, and more
- Easily personalize name labels by hand or print them on-site on your laser or inkjet printer
- Quickly create professional-quality sticker name tags with personal titles, company names, logos, and more using our Avery online design software and hundreds of available Avery templates
- Save time before your event with the unique peel-away design that allows you to separate each name tag from the printed sheet with the label backing still intact until ready to use
Limit by customer role or date
Product Badges and Labels supports customer-role targeting and scheduled start and end dates. A schedule is appropriate for a timed promotion; role targeting is useful when a label should be visible only to a defined customer group.
Mark products as featured before using a featured badge
- Go to Products > All Products.
- Locate the product and use the star in the Featured column to turn featured status on or off.
- In your badge rule, choose Featured Product where that condition is available.
The badge rule reads WooCommerce’s featured status; it does not create that status itself.
Change the sale badge with PHP
Use a filter when you only need to alter the wording or HTML generated for an on-sale product. Add snippets through a child theme or a code-snippet management tool, and test after a WooCommerce or theme update. WooCommerce notes that custom actions and filters require advanced PHP knowledge.
Rank #3
- Visitor stickers are made with durable adhesive that will adhere to any surface, offering a reliable way to keep visitors identified.
- Name badges have a large space to write a visitor's name, making it easy to quickly fill out and get them ready for use.
- Name tag stickers have a white and blue color scheme that gives them a professional look and will help visitors feel welcome and comfortable.
- Visitor badges measure 3 1/2 x 2 1/4 inches, and are small and compact, making them easy to store and transport.
- Name tag stickers for clothes are in a pack of 100 enough for a large gathering of visitors or multiple uses over time.
Block-based product displays
The On-Sale Badge block displays a “Sale” badge on products that are on sale. Its documented filter receives the sale text and a WC_Product object:
<?php
add_filter( 'woocommerce_sale_badge_text', function ( $text, $product ) {
return 'Save now';
}, 10, 2 );
Keep the product argument available if your wording depends on the product’s price, type or other properties. The badge is rendered only when WooCommerce considers the product on sale.
Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Repair Windows errors before they cause bigger problemsFix Now →Classic themes and sale HTML
Classic theme output can be replaced with the woocommerce_sale_flash filter:
Rank #4
- √DETAILS - 2x3 inch | Fluorescent Green Visitor Badge Stickers | 300 Stickers on a Roll.
- √DESIGN - The bright color helps to easily identify visitors. Emple room to write the visitor's name and date they are visiting.
- √WIDE APPLICATION - These guest pass stickers will help facilitate a better social environment at your hospital, conference,group, meeting, trip, school, or business
- √EASY TO USE - Just tear the sticker off the roll, slickly peel and stick for secure placement onto the surfaces
- √HIGH QUALITY - Quality strong permanent self adhesive stickers,stick well on plastic cards and clothings
<?php
add_filter( 'woocommerce_sale_flash', function ( $html, $post, $product ) {
return '<span class="onsale custom-sale-badge">Save today</span>';
}, 10, 3 );
This approach replaces the sale-badge HTML, so preserve accessible text and confirm that your theme still places the returned markup inside the product-image area.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Style badges with CSS
Target the extension’s shared class, wcpb-product-badges-badge, or the badge-specific class it adds to an individual label. For example:
.wcpb-product-badges-badge {
background: #b42318;
color: #fff;
border-radius: 999px;
padding: .35rem .65rem;
font-size: .8rem;
line-height: 1;
}
Use a badge-specific selector when different labels need different colors. CSS changes presentation only; assign products with extension rules or PHP logic.
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Best Value
- Personalize name badge labels by hand or print your custom stickers on the 4" x 6" sheets with your laser or inkjet printer
- Quickly create professional-quality name tag stickers with personal titles, company names, logos, and more using our Avery online design software and hundreds of available Avery templates
- Perfect for both personal and professional use, these self-adhesive rectangle labels are great to use as name tags for meetings, trade show badges, storage organization labels, classroom tags, and more
- Name badge stickers stick firmly to most fabrics without curling or falling off, yet removes cleanly and easily
- Distribute name tags quickly and easily at your next event with this pack of 100 customizable adhesive name badges
Troubleshoot missing, duplicated or misplaced badges
The badge does not appear
- Confirm the badge is published and its condition matches the product’s current category, sale state, stock state or tag.
- Check whether a schedule has started and has not expired.
- Verify that the product is genuinely on sale when using an on-sale condition; a regular price without a lower sale price will not qualify.
- Clear page, object and CDN caches, then test while logged out.
The badge overlaps the image or another badge
- Inspect the product-card markup and the badge’s positioning rules in browser developer tools.
- Adjust padding, offsets, z-index or image-container positioning in CSS.
- If several badges are enabled, assign distinct positions or consolidate them into one label.
The badge disappears after changing a theme or plugin
A theme or another plugin may replace the product-image markup or the hooks used by the badge extension. Enable the extension’s documented compatibility setting for the affected theme or layout, clear all caches, and retest the shop, category and single-product templates.
Practical badge setups
Storewide sale
Create a text badge reading “Sale,” set the condition to On Sale, and choose a prominent position that does not obscure product photography.
New collection
Use a text or image badge and target a dedicated collection category or tag. Remove the category or tag when the launch period ends.
Clearance with a dynamic discount
With Product Badges and Labels, target the clearance category and use a label containing {percentage} or {discount} so the displayed saving follows each product’s configured prices.
Do these 3 things before closing this tab:
1Fix the driver behind crashes, sound loss and screen glitches2Repair Windows errors before they cause bigger problems3Scan for outdated or missing drivers - takes under a minuteMembers-only promotion
Create the badge, set its customer-role condition, and add start and end dates. Test with an account in the target role and with a logged-out visitor before publishing.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

