Product Archive

WooCommerce Show Custom Content Below Product Archive

WooCommerce custom content being shown below the product archive

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 insert custom content below the product archive (product category) template including the main shop page.

In this example, we output “CUSTOM CONTENT HERE” but you are able to output any content you like below the WooCommerce Product Category using this code snippet.

/**
 * Snippet Name:	WooCommerce Show Custom Content Below Product Archive
 * Snippet Author:	ecommercehints.com
 */

add_action('woocommerce_after_main_content', 'ecommercehints_content_below_product_archive');
function ecommercehints_content_below_product_archive() {
	if ( is_product_category() || is_shop() ) { // Only on the Shop and Category/Archive pages
		echo 'CUSTOM CONTENT HERE';
	}
}

Snippet Benefits

  • Bulk show content below the product categories.

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 10% off on your first month with us.

26027
WELCOME OFFER