Website Building » WooCommerce » How Do I Change the Layout of a Single Product Page in WooCommerce?

How Do I Change the Layout of a Single Product Page in WooCommerce?

Last updated on January 11, 2023 @ 12:09 pm

If you’re using WooCommerce to sell products on your WordPress site, you may want to change the layout of the single product page to better suit your needs. For example, you may want to move the product image to a different location, or change the order in which the product information is displayed.

In this article, we’ll show you how to change the layout of a single product page in WooCommerce. We’ll also give you some tips on how to style your product pages using HTML tags.

When you’re logged in to your WordPress site, go to Appearance > Editor. On the right hand side, you’ll see a list of files that you can edit. Find the one titled Single Product and click on it.

You should now be looking at the code for your single product page. If you want to move the product image, look for the code that looks like this:

<div class="woocommerce-product-gallery">
</div>

Then, simply cut and paste that code into the new location where you want it to appear. Remember to save your changes before you exit the editor.

PRO TIP: If you are not familiar with code or do not feel comfortable making changes to your site, we recommend that you seek out a WooCommerce expert to help you make these changes. Making the wrong change to your WooCommerce product page layout could break your site.

If you want to change the order in which the product information is displayed, look for the code that looks like this:

<div class="summary entry-summary">
</div>

<div class="product meta">
</div>

and move it above or below the other sections as desired. Again, don’t forget to save your changes before you leave the editor.

That’s all there is to changing the layout of a single product page in WooCommerce! As you can see, it’s relatively simple to do, and doesn’t require any knowledge of coding.

Just remember to take care when editing your theme files, as a mistake could break your site. If you’re not confident in making these changes yourself, we recommend hiring a developer to help you out.

Kathy McFarland

Kathy McFarland

Devops woman in trade, tech explorer and problem navigator.