Product Trust Badges Row
Adds a row of customisable trust-signal badges (secure checkout, fast delivery, easy returns) below the add-to-cart button on WooCommerce product pages.
Module2 parts · by SnipCraft
PHPLogic
php
<?php
if ( ! class_exists( 'WooCommerce' ) ) { return; }
add_action( 'woocommerce_after_add_to_cart_button', 'scseed_trust_badges_row' );
function scseed_trust_badges_row() {
$badges = apply_filters( 'scseed_trust_badges', array(
array( 'icon' => '🔒', 'text' => 'Secure Checkout' ),
array( 'icon' => '🚚', 'text' => 'Fast Delivery' ),
array( 'icon' => '✅', 'text' => 'Easy Returns' ),
array( 'icon' => '🎉', 'text' => 'Top Rated' ),
) );
echo '<div class="scseed-trust-row">';
foreach ( $badges as $badge ) {
echo '<span class="scseed-trust-item">';
echo '<span class="scseed-trust-icon" aria-hidden="true">' . wp_kses_post( $badge['icon'] ) . '</span>';
echo '<span class="scseed-trust-text">' . esc_html( $badge['text'] ) . '</span>';
echo '</span>';
}
echo '</div>';
}CSSStyles
css
.scseed-trust-row {
display: flex;
flex-wrap: wrap;
gap: 0.75rem 1.5rem;
margin: 1rem 0 0.5rem;
padding: 0.875rem 0;
border-top: 1px solid #eee;
}
.scseed-trust-item {
display: flex;
align-items: center;
gap: 0.4rem;
font-size: 0.8rem;
color: #555;
}
.scseed-trust-icon {
font-size: 1rem;
line-height: 1;
}
.scseed-trust-text {
font-weight: 500;
letter-spacing: 0.01em;
}#frontend#woocommerce#conversion#product#trust