WooCommerce Show Custom Content Between Short Description And Add To Cart

WooCommerce single product template showing custom content between the short description and add to cart form

Pre-Requisites

There are no pre-requisites in order for you to be able to implement this solution.

How To Implement This Solution?

Simply copy the pre-coded solution to your active theme’s functions.php or preferably the Code Snippets Plugin.

About this Solution

In this guide, we show you how you can display custom content between the short description and add to cart button. Sure, you could just add additional content to the short description meta box, but his guide shows you how you can add custom content globally, across all products with just one snippet. This is a great way to output messages to influence the customer to buy, messages like “in high demand” or “sale ends soon”. Output literally any content you like with this snippet.

				
					/**
 * Snippet Name:	WooCommerce Show Custom Content Between Short Description And Add To Cart Form
 * Snippet Author:	ecommercehints.com
 */

function ecommercehints_show_custom_content_below_product_meta() { 
    echo "Custom content here!";
}; 

add_action( 'woocommerce_before_add_to_cart_form', 'ecommercehints_show_custom_content_below_product_meta', 10 ); 
				
			

Snippet Benefits

  • Show custom content between the short description and add to cart section on the WooCommerce Single Product Template.
WooCommerce Conversion Rate Optimisation (CRO) eBook
100 WooCommerce Conversion Rate Optimisation Tips

Leave a Reply

If you are going to write code in the comments, please wrap it between code tags.

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

Other Recent Guides

Subscribe To Emails

Get exclusive WooCommerce tips that I only share with email subscribers

Join hundreds of other subscribers