Product Page

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.

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.

26027
WELCOME OFFER