TrustBadg - Trust Badges

⌘K
  1. Home
  2. TrustBadg - Trust Badges
  3. Getting Started
  4. Automatic placements

Automatic placements

Automatic placements inject badge sets at predefined WordPress and e-commerce hooks — no block or shortcode needed on those pages.

Configuration

On each badge set: Placement tab → Automatic placements (multi-select dropdown).

  • Leave empty → badge set appears only via block or shortcode.
  • Select one or more placements → badge set renders automatically on matching pages.
  • Options are grouped by plugin (Site, WooCommerce, EDD, etc.). Options stay disabled until the required plugin is installed.

Automatic placements are per badge set, not global. (Legacy global placement values in the database may still apply at runtime, but there is no settings UI for them.)

Optional filters (Placement tab)

FilterApplies toBehavior
Product categoriesWooCommerce product/shop placementsEmpty = all categories; ancestor terms match
Product tagsWooCommerce product/shop placementsEmpty = all tags
Specific pagesspecific_page placement onlyEnabled when that placement is checked
Custom page pathscustom_page placement onlyOne path per line, e.g. /pricing

How badge sets are resolved

For each placement hook, Trustbadg picks one badge set in this order:

  1. Filter override — trustbadg_resolve_badge_set_id (includes WooCommerce per-product override via _trustbadg_badge_set)
  2. First matching badge set — published sets with that placement enabled, passing taxonomy/page filters (sorted by title, ascending)
  3. Default badge set — Trustbadg → Settings → Badges (skipped for specific_page and custom_page)

Tip: Use separate badge sets per placement when messaging differs. If two sets share the same placement, only the first (alphabetically by title) renders.

Available placements

Site

IDLocation
before_contentAbove main content on posts and pages
after_contentBelow main content on posts and pages
homepageBelow content on the homepage
all_pagesBelow content on every page
blog_postsBelow content on every blog post
specific_pageSelected pages only (per-set; use Specific pages filter)
custom_pageURLs matching custom paths (per-set; use Custom page paths)
site_footerSite-wide, above closing </body>

WooCommerce

IDLocation
woocommerce_product_titleAfter product title
woocommerce_product_priceAfter product price
woocommerce_product_ctaNext to Add to Cart
woocommerce_productBelow purchase form
woocommerce_product_categoryAbove product grid on category archives
woocommerce_shopAbove product grid on shop page
woocommerce_cartBelow cart table
woocommerce_cart_totalsBelow cart totals
woocommerce_checkout_beforeAbove checkout fields
woocommerce_checkoutAbove payment methods
woocommerce_checkout_after_paymentBelow payment methods
woocommerce_thankyouOrder received page

Classic and block-based WooCommerce cart/checkout themes are supported.

Other e-commerce plugins

PluginPlacements
EDDDownload price, purchase button, below content, checkout, receipt
SureCartBuy page, checkout (also instant buy URLs with ?sc-buy)
FluentCartProduct summary, cart, checkout
MemberPressCheckout form, before submit
Restrict Content ProRegistration fields, before submit
Paid Memberships ProAfter level cost, before submit
GiveWPBefore donation amounts, before donate button

WooCommerce product override

On individual products, a Trustbadg Badge Set meta box lets you assign a specific badge set. That overrides automatic resolution on that product page via the trustbadg_resolve_badge_set_id filter.

How can we help?