WooCommerce Show Custom Content Above Product Meta

WooCommerce single product template showing custom content above product meta data

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 snippet allows you to display custom content above the product meta. Product meta being the SKU, categories and tags the product belongs to. You may wish to output more important meta data using this snippet (or quite literally any content you like!).

				
					/**
 * Snippet Name:	WooCommerce Show Custom Content Above Product Meta
 * Snippet Author:	ecommercehints.com
 */

function ecommercehints_show_custom_content_above_product_meta( $array ) { 
    echo "Custom content here!";
}; 

add_action( 'woocommerce_product_meta_start', 'ecommercehints_show_custom_content_above_product_meta', 10, 1 ); 
				
			

Snippet Benefits

  • Show custom content above the product meta 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