Add Text Under Each Product on Shop Page

If You want to feature a “Free Shipping” notice under each WooCommerce product on the store page. This can increase your click-through rate, thereby increasing your sales conversion rate. Here are a few PHP and CSS snippets for you to implement this useful edit.

add_action( 'woocommerce_after_shop_loop_item', 'codeithub_show_free_shipping_loop', 5 );
 
function codeithub_show_free_shipping_loop() {
   echo '<p class="shop-badge">ADD TEXT HERE</p>';
}

Before:

Default Shop Page

After:

Text Under each Product
See also  How to Enable PHP In WordPress Widgets

Leave a Reply