Award Labels for Products (Taxonomy + Block Output Customization)

9

Registers a custom awards taxonomy and customizes how product awards display in the block editor. It replaces award term names with descriptions and applies targeted CSS classes for flexible styling, letting you maintain clean internal labels while showcasing polished, marketing-ready badges. Perfect for Gutenberg and Full Site Editing setups that need awards differentiation without additional custom code.

What it does

  • Registers a custom, non-hierarchical taxonomy: awards for WooCommerce products
  • Modifies the Core “Post Terms” block output when it renders awards
  • Replaces link text (term name) with the term description
  • Adds CSS classes to each award link:
    • award (base class)
    • {term-slug} (unique class per award)
  • Optional: can also replace term names via get_the_terms filter on award archive pages

Why it’s useful

  • You can store short/internal term names (e.g. “awwwards-2024”) while displaying a clean, marketing-ready label in the UI (e.g. “Awwwards – Honorable Mention 2024”)
  • Styling becomes trivial:
    • .award for common badge styling
    • .award.awwwards-2024 for a specific badge look
  • Works cleanly with Gutenberg / FSE sites using the core/post-terms block

There are no reviews yet.

Be the first to review “Award Labels for Products (Taxonomy + Block Output Customization)”

Your email address will not be published. Required fields are marked *