There are some cases where you would like to have you WooCommerce products not display a description, this tutorial will help you achieve just that.
By default WooCommerce has two description fields, a short description and a long description. The short description is usually an excerpt take from the long description unless you enter your own short description on the product page.
The short description is displayed right next to the image on the product page underneath the title, where as the long description is displayed in a tab at the bottom of the product page.
If you would like to either remove the WooCommerce short description or the long description tab, or both, you can do so by adding the following code to your theme’s functions.php file.
I am developing a website for a spice company. For each spice, my client would like to list several recipes that utilize that specific spice. Do you think I could simply change the “Description” header to “Recipes” and add the recipes in the description field?
Or, is there a better way to add an additional recipe tab that might be more functional in the end?
Also, I’m afraid that, when my site requires an update, I’ll lose the changes. What do I need to do?
Thanks for your help—I’m a fairly smart newbie who is figuring it all out by trial and error, so far!!
LikeLike
Find a code very interesting but i do not work. I have the version of Woocommerce 2.0.20 breaks the single product page (product page). But my I would like to know how you can remove / hide ONLY the short description in the product list (grid),
on the product only (page product) do not.
Thank you
LikeLike
Thanks! Any idea how to do the opposite? I’d like to know how to remove the image from being displayed on the page, but keep the description and have it left aligned where the image was. Thanks in advance!
LikeLike
When I add this code, it removes all descriptions. I just want one or the other removed. How should I change it?
LikeLike
When I added this code to my functions.php it caused my site to only load a blank page with nothing on it. I had to do a full site restore and lost quite a bit of work. Be wary if you’re casually adding this to your functions.php.
LikeLike
Jonno, there is nothing wrong with the code, you probably added the php tags into the functions.php file which already contained those tags. Try adding the code between the tags and see if that makes a difference.
LikeLike
Hi Gerhard! By default, the right side product description has 2 descriptions, the short and long descriptions. Suppose I want to remove the long product description on the right side and retain the long product description displayed below the picture, what’s the php code for that? thanks in advance! =)
LikeLike
Hello,
Do you know a way to remove the featured image in the single product page? I don’t want the featured image to show up as the first image in the product page gallery.
Thank you very much!
LikeLike
How to remove single product page?v I dont need it
LikeLike
0 Pingbacks
Categories
Top Posts & Pages
Instagram
There was an error retrieving images from Instagram. An attempt will be remade in a few minutes.