Digital experiences for all disciplines
New Landing › How can we help? › Atelier › Remove Product Short Description
New Landing › How can we help? › Atelier › Remove Product Short Description
- This topic has 16 replies, 5 voices, and was last updated 8 years by Kyle – SUPPORT.
-
Posted in: Atelier
-
July 2, 2015 at 1:07 pm #191031
Hi Guys,
I would like to remove the product short description on the single product page.
Found this link (by WooCommerce). See here
Link: https://support.woothemes.com/hc/en-us/articles/202814378-How-to-remove-the-Product-Description-from-the-single-product-page-in-WooCommerceAnd should be placed within function.php in theme folder. Tried it but unfortunately with no effect, am I doing something wrong? Other tips?
Thanks!
Joost
July 2, 2015 at 1:15 pm #191037Hi
We have changed the output of the single product, the files are in atelier/woocommerce
How come you are trying to remove the short description? Why don’t you just not add any content to it?
– Kyle
July 2, 2015 at 1:46 pm #191061This reply has been marked as private.July 2, 2015 at 1:53 pm #191068Ok then edit the content-single-product.php file in atelier/woocommerce
– Kyle
July 2, 2015 at 3:11 pm #191132Ok Thanks Kyle,
Can you point me in the right direction? If I for example replace rule 164:
do_action( 'woocommerce_single_product_summary' );
With the code from Woocommerce, the short description is gone but the add to cart section/select your size as well.
Any thoughts?
Thanks again,
JoostJuly 2, 2015 at 3:22 pm #191140Hi,
You should get that code and place it inside the functions.php of the child theme.
you can’t remove that do_action or almost everything in the single product page will not work.
-Rui
July 2, 2015 at 3:30 pm #191143This reply has been marked as private.July 2, 2015 at 3:50 pm #191151just notice that the code you have is to remove the description tab and not the product short description.
Try in the Woocommerce support site, they are in better position to help you out with this.
-Rui
July 2, 2015 at 4:48 pm #191182Hi Guys,
I’ve looked in to it and if I add:
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
at functions.php from child theme it removes the cart, same goes forwoocommerce_template_single_meta
to remove meta.But
woocommerce_template_single_excerpt
to remove the excerpt which is product short description (see here).It doesn’t work. Also tried it in parent functions.php but with no luck.
July 2, 2015 at 5:03 pm #191187follow my advice above, check for they current support topics, that probably was asked before.
-Rui
July 8, 2015 at 7:55 pm #192928div.container.product-after-summary {display:none;}
July 8, 2015 at 8:02 pm #192929Hey @spotresponse,
Thanks for helping out :). Didn’t fixed it unfortunately.
July 10, 2015 at 1:13 pm #193633Hi,
Can you provide a link to a product of yours and an annotated screenshot showing what you want to remove?
Thanks.
July 10, 2015 at 3:01 pm #193675This reply has been marked as private.July 11, 2015 at 8:33 am #193784Hi,
Ok I think I follow, so to remove the short description, please add this CSS:
.woocommerce div.product .product-short { margin-bottom: 30px; display: none; }
Thanks,
David. -
Posted in: Atelier
You must be logged in and have valid license to reply to this topic.