WooCommerce: Display Long Description Instead Of Short One @ Single Product Page

Especially when you migrate from a different ecommerce platform to WooCommerce, you may end up placing or importing content in the wrong place.

A lot of confusion, for example, arises when a new WooCommerce store owner needs to understand the difference between the “Long” and the “Short” description. Well, the “Long description” is the one that displays inside the “Description” tab, below the product summary (that section that features the image on the left + add to cart on the right), usually in full width. The “Short description“, on the other hand, is the one that shows on the right hand side of the product image, and is usually… shorter.

Now, what if you don’t use the “Short description” in your WooCommerce store, and you wish to display the “Long description” on the right hand side of the featured image instead? Well, here’s a simple snippet for you. Enjoy!

Let’s remove the short description and display the long one instead!

PHP Snippet: Show Long Description Instead of the Short Description @ Single Product Page

Note: to avoid duplicate content, you may also need to hide the “Description” tab of course, otherwise the Long Description will display twice once the snippet below is installed.

 * @snippet       Long Instead of Short Description @ WooCommerce Single Product
 * @how-to        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli
 * @compatible    WooCommerce 8
 * @community     https://businessbloomer.com/club/

remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
add_action( 'woocommerce_single_product_summary', 'bbloomer_template_single_long_description', 20 );

function bbloomer_template_single_long_description() {
	strip_tags( the_content() );

Where to add custom code?

You should place custom PHP in functions.php and custom CSS in style.css of your child theme: where to place WooCommerce customization?

This code still works, unless you report otherwise. To exclude conflicts, temporarily switch to the Storefront theme, disable all plugins except WooCommerce, and test the snippet again: WooCommerce troubleshooting 101

Related content

  • WooCommerce: Truncate Short Description With “Read More” Toggle
    In this example we’ll see how to truncate the WooCommerce single product short description and place a “read more” link to reveal the hidden content… You can also apply this to the long description, a custom product tab, the product gallery, and whatever can be truncated. Enjoy!
  • WooCommerce: Show Product Description @ Shop Page
    If you want to show the “short description” field on the products that are on your homepage or in the loop, here’s the PHP code to add to your functions.php.
  • WooCommerce: Display Global Short Description When Empty @ Single Product Page
    The WooCommerce product short description is that piece of content that appears on the right hand side of the featured image above the add to cart button. This is, of course, unless you forgot to enter the short description under Product > Edit Product > Short Description! In case you forgot to enter it or […]
  • WooCommerce: Add a Third Description @ Single Product Page
    There are times when the “long description” and the “short description” are not enough on the WooCommerce Single Product page. What if you need to add another HTML content section – say – at the very bottom of the page (and maybe, because of the longer page, add another add to cart button there as […]
  • WooCommerce: Product Description in a Shortcode!
    It may be helpful to show the long product description of a given product in a custom WordPress page or post, so that you can use it as a teaser or anyway as a way to save some time instead of rewriting the whole thing. The solution is easy: let’s code a simple shortcode that […]

Rodolfo Melogli

Business Bloomer Founder

Author, WooCommerce expert and WordCamp speaker, Rodolfo has worked as an independent WooCommerce freelancer since 2011. His goal is to help entrepreneurs and developers overcome their WooCommerce nightmares. Rodolfo loves travelling, chasing tennis & soccer balls and, of course, wood fired oven pizza. Follow @rmelogli

2 thoughts on “WooCommerce: Display Long Description Instead Of Short One @ Single Product Page

  1. This code.. doesnt read right.

    the_content() immediatedly echos the content, strip_tags would be useless. Also, you should echo it, because its an action, not a filter.

    Corrected code would probably be (untested):

    function my_fancy_action_name() {
    echo strip_tags( get_the_content );
    1. Not really sure about your comment, this code works perfectly for me

Questions? Feedback? Customization? Leave your comment now!

If you are writing code, please wrap it like so: [php]code_here[/php]. Failure to complying with this, as well as going off topic or not using the English language will result in comment disapproval. You should expect a reply in about 2 weeks - this is a popular blog but I need to get paid work done first. Please consider joining the Business Bloomer Club to get quick WooCommerce support. Thank you!

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