How to make your WordPress theme WooCommerce compatible

Woocommerce and WordPress are a match built to last. But not all WordPress themes are compatible to use with Woocommerce. Not to worry! You can modify your WordPress theme to be Woocommerce compatible.

Check if your theme is compatible

First you need to identify if your theme is compatible of not. Install Woocommerce, and look for a notice indicating that your theme is not compatible.

There is a possibility that your theme is Woocommerce compatible, but the compatibility is not declared. If the compatibility is not declared, then WordPress won’t know what to tell you. It is always best to check for yourself.

Child theme

Start by making your WordPress theme a child theme. You don’t ever want to make changes directly to your parent theme. A child theme allows you to make customizations to the theme while retaining the ability to receive updates to the parent theme. Before you make any changes to your website, make sure to back up the website.

Duplicate and Edit the page.php file

Look for the page.php file in your theme. The file will be found in wp-content/themes/YOURTHEME/page.php. Duplicate the page.php file, and name it woocommerce.php.

Find the loop that starts with

<?php if ( have_posts() ) :

and ends with

<?php endif; ?>

Copy and replace the loop with

<?php woocommerce_content(); ?>

That is it! Upload and test your updates.

Hold Up... Is this too complicated? Get Help

Test compatibility

To test if your theme is Woocommerce compatible, go to Woocommerce > System Status. Inside the “Theme” section, check for “WooCommerce Support”. You will either have a check for approval, or an X for not declared.

woocommerce support declared

Once you know how to make a WordPress theme Woocommerce compatible, the themes available for your use grow and grow. I guess knowledge really is power.

Leave a Reply

Your email address will not be published. Required fields are marked *