Product Page

WooCommerce Show Custom Content Above Product Meta

WooCommerce single product template showing custom content above product meta data


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:

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.

100 WooCommerce Conversion Rate Optimisation Tips

This field is for validation purposes and should be left unchanged.

Let’s collaborate!

Need to outsource WordPress development?

Join forces with UnlimitedWP for an outsourced white label web development service you can truly rely on.

First Timer Here?

Sign up to receive 20% off on your first month with us.