WooCommerce Show Custom Content Between Title And Price

WooCommerce single product page showing custom content between title and price

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

This guide shows you how you can display custom content between the product title and the price on the WooCommerce Product Page. You may wish to let customers know of a sale or promotion running and want to capture their attention nearer the top of the single product template.

				
					/**
 * Snippet Name:	WooCommerce Show Custom Content Between Title And Price
 * Snippet Author:	ecommercehints.com
 */

function ecommercehints_content_below_title_above_price() {
	echo 'Custom content here!';
};
add_action( 'woocommerce_single_product_summary', 'ecommercehints_content_below_title_above_price', 5 );
				
			

Snippet Benefits

  • Show any content you like between the product title and short description 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