Skip to main content

WooCommerce CSS Product Labels

Overview

CSS Labels are text badges drawn entirely with CSS — no images needed. They load instantly, stay razor-sharp on any screen, and are the quickest way to add a "Sale", "New", or "Hot" label to your products. The plugin includes 15+ ready shapes (ribbons, corners, circles, flags, and more).

Use CSS Labels when you want fast, lightweight text badges that you can fully recolor and reshape to match your brand.

Sale Booster's WooCommerce CSS labels make it easy to create a WooCommerce sale badge or WooCommerce new product badge without editing theme files. Choose from flexible WooCommerce badge shapes and style the CSS product labels to match your storefront.

Examples of CSS labels on products

How it works

You want a green "NEW" flag on every product added in the last 14 days. You open the CSS Labels tab, type NEW, pick the flag shape, set the color to green, and place it top-left. In the Products & Conditions tab you choose Recently Added → 14 days. Done — new arrivals are automatically flagged, and each product drops the flag once it's older than two weeks.

Free vs Pro

CSS Labels and the 15+ shapes are available in the Free version. Gradient colors, rotation, and animation effects are enhanced in Pro.

Step-by-step setup

1. Write the label text

In the CSS Labels tab, type your text in the Label field (e.g. SALE). To show live values like the discount percentage, use a placeholder such as {saved_percent} — the plugin swaps in the real number per product.

CSS Label text field with placeholder helper text

2. Choose a shape

Pick one of the built-in shapes from the gallery. The live preview on the right updates instantly.

CSS Label shape gallery

3. Style, position, and (optionally) animate

Set the color, size, corner placement, and any animation, then Save.

Options explained

Label & text

OptionWhat it doesWhen & why to use
LabelThe badge text. Supports placeholders.Keep it short (1–2 words) so it fits the shape.
Percentage Discount amountReplaces the text with the live discount %.Turn on for a pure "20% OFF" badge with zero manual updates.
Text ColorSolid or gradient text color.Use high contrast against the badge color for readability.
CSS Label PositionOn Image or Out of Image.On Image overlays the photo; Out of Image sits under the title/price — use it if a badge would cover important product detail.
TranslateAdd translations per language.Multilingual stores — see Translation.

Shape & style

OptionWhat it doesWhen & why to use
Badge ColorBackground color (solid/gradient).Match your brand or use red for urgency.
Width / HeightBadge size (separate for archive & product pages).Enlarge slightly on product pages where there's more room.
Border RadiusRounds each corner independently.Soften corners for a modern look, or keep square for ribbons.
Border Width / ColorOptional outline.Add a border when the badge sits on a busy photo.
Font Size / Weight / Line HeightText typography, set separately for Archive Page and Product Page. Weight options: 500, 600, Normal, Bold, Bolder, Lighter.Use Bold/600+ so short labels read clearly.
z-indexStacking order.Increase if the badge hides behind theme elements.

Opacity & rotation

OptionWhat it doesWhen & why to use
OpacityFades the badge 0–100%.Slightly reduce for a subtle, premium feel.
Rotation X / Y / ZTilts/flips the badge in 3D.Angle a ribbon diagonally across a corner.
Horizontal / Vertical offsetNudges the position.Fine-tune so the badge clears rounded image corners.

Opacity and rotation controls

Position

Anchor the badge to the Top-Left, Top-Right, Bottom-Left, or Bottom-Right of the image and fine-tune the exact offset. When set to Out of Image, align it left, center, or right.

Badge position controls

Shadow & animation

  • Shadow — set a color and width to lift the badge off the image. Use sparingly on busy photos.
  • Animation — choose an effect: Swing, Flicker, Pulse, Rotate, Flash, Jump, Pop, Spring, Wobble, Flip, or Visibility (or None). Set Iteration Count (1–5 or Infinite) and Duration (seconds).

Animation options

Products & Conditions

  • Recently Added — select Recently Added → 14 days to target new products.

Products & Conditions tab showing the Recently Added rule

When to use animation

A single Pulse once or twice draws the eye to a flash sale without distracting from the Add to Cart button. Avoid infinite fast animations on every product — it looks noisy.

🧪 Example configuration

A green "NEW" flag for recent arrivals:

SettingValue
LabelNEW
ShapeFlag / corner
Badge ColorGreen (#1faa59)
Text ColorWhite
PositionTop-Left
AnimationPop, 1 iteration
TargetingRecently Added → 14 days

What customers see

New products display a crisp green "NEW" flag in the top-left corner on both the shop grid and product page.

Green NEW flag on a storefront product

Best practices
  • Keep labels to 1–2 words so they never overflow the shape.
  • Use red for urgency (sale/clearance), green for positive (new/eco), black for premium.
  • Prefer Out of Image when the on-image badge would cover the product itself.

Next Steps

Frequently Asked Questions

How do I add a CSS sale badge in WooCommerce?

Go to Sale Booster → Badges → Add New, open CSS Labels, enter text such as SALE, choose a shape and color, then configure Products & Conditions before saving.

Can a CSS product label show a live discount percentage?

Yes. Use the {saved_percent} placeholder or enable Percentage Discount amount so the badge can display the current discount for each product.

Should a CSS label appear on or outside the product image?

Choose On Image for a compact overlay. Choose Out of Image when the badge could cover important product photography or when your theme already places text over the image.