If you have a WooCommerce store, you may have noticed that the product description is not always where you want it to be. Maybe you want it above the Add to Cart button, or below the product image. Whatever the reason, moving the product description is easy to do with just a few lines of code.
First, you need to find the template file that contains the code for the product page. This can be found in yourtheme/woocommerce/single-product.php. If this file doesn’t exist in your theme, you can create it by copying single-product.php from the WooCommerce plugin folder (wp-content/plugins/woocommerce/templates/) and pasting it into your theme folder.
Once you have located or created single-product.php, open it in a text editor and find the line of code that looks like this:
<?php WooCommerce_template_single_title(); ?>
This is the line of code that outputs the product title. Directly below this, you will see this line of code:
<?php WooCommerce_template_single_excerpt(); ?>
This is the line of code that outputs the product excerpt (the short description). If you want the product description to appear below the title, all you need to do is move this line of code below the title line like so:
PRO TIP: If you are thinking about moving a description in WooCommerce, be aware that this can cause problems with your product pages. If you do not have a good reason for moving the description, it is best to leave it where it is.
<?php WooCommerce_template_single_title(); ?>
<?php WooCommerce_template_single_excerpt(); ?>
If you want the product description to appear above the Add to Cart button, you need to find this line of code:
<?php WooCommerce_template_single_add_to_cart(); ?>
And move it below the description like so:
<?php WooCommerce_template_single_excerpt(); ?>
<?php WooCommerce_template_single_add_to_cart(); ?>
9 Related Question Answers Found
WooCommerce is a powerful ecommerce plugin for WordPress. It is used by many online stores and comes with a lot of features. One of these features is the ability to add multiple categories to products.
If you are using WooCommerce to sell products on your WordPress website, then you may need to change the product description from time to time. For example, if you have a sale or if you need to update the information about a product. In this article, we will show you how to easily change a product description in WooCommerce.
Adding a description to WooCommerce is easy and can be done in just a few steps. To do this, simply follow these instructions:
First, log into your WordPress admin panel and navigate to the WooCommerce tab. Next, click on the products tab and then select the product you want to add a description to.
If you’re running a WooCommerce store, there’s a good chance you’ll want to use categories to help organize your products. Categories can make it easier for customers to find what they’re looking for, and they can also help you keep track of your inventory. Fortunately, enabling categories in WooCommerce is a relatively simple process.
If you’re a developer, it’s likely that you’ll need to change your WooCommerce code at some point. Maybe you’re extending WooCommerce to work with a new payment gateway, or perhaps you’re customizing the checkout process. Whatever the reason, there are a few things you need to know before changing any WooCommerce code.
If you want to change the order of your products in WooCommerce, there are a few different ways you can do it. You can change the order of your products manually, by going to WooCommerce > Products and then dragging and dropping the products into the order you want them in. Or, you can change the order of your products automatically, by going to WooCommerce > Settings > Products and selecting the option to ‘Sort products alphabetically’.
There are two types of inventory in WooCommerce: product inventory and order inventory. Product inventory is the number of products you have in stock, while order inventory is the number of products you have on order from your supplier. To set inventory in WooCommerce, first go to your WordPress Dashboard and click on WooCommerce > Settings.
If you’re just getting started with WooCommerce, you may be wondering how to arrange products on your site. While the default settings are fine for most stores, you may want to change the arrangement to better suit your needs. In this article, we’ll show you how to arrange products in WooCommerce.
Adding inventory in WooCommerce is a simple process that can be completed in just a few steps. Here’s how:
1. Log into your WooCommerce account.