ResolvedShort description
- This topic has 6 replies, 2 voices, and was last updated 2 years, 6 months ago by
Althemist.
- AuthorPosts
- February 26, 2021 at 2:50 am #29138
zhekastar
ParticipantHello. Thank you for the great template! How do I remove a short description of the product on the order page? Why it doesn’t work??? Hook: remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_excerpt’, 20 );
February 26, 2021 at 3:39 pm #29147Althemist
KeymasterHi zhekastar,
Not really sure what do you mean. What do you call “the order page”? Please, explain more, so we can assist you.
February 28, 2021 at 2:01 am #29167zhekastar
ParticipantHere on these pages. How do I delete a short description?
. In the documentation woocommerce that this hook removes the short description from this page. But this hook doesn’t work for some reason. And with the help of other hooks, you can delete the price and product names on this page.
remove_action('woocommerce_single_product_summary','woocommerce_template_single_title', 5 ); // Deletes the product name remove_action('woocommerce_single_product_summary','woocommerce_template_single_price',10 ); // Deletes the price remove_action('woocommerce_single_product_summary','woocommerce_template_single_excerpt',20 ); // And this hook should delete the description. But it doesn't work! Why?
Maybe I’m setting the wrong priority?
details__short-description p { margin: 0 0 10px 0; display: none; } // This option does not suit me.
Since this code removes descriptions everywhere.
February 28, 2021 at 12:55 pm #29171zhekastar
ParticipantMarch 1, 2021 at 12:49 pm #29182Althemist
KeymasterHello zhekastar,
CSS would be the only option in your case:
.lafka-product-summary-wrapper div.summary .woocommerce-product-details__short-description p { display: none; }
Hope this helps.
Regards,
DimitarMarch 2, 2021 at 12:04 am #29208zhekastar
ParticipantThanks. It works. You are the best of the best.
March 2, 2021 at 10:46 am #29214Althemist
KeymasterThanks for your 5-star review on ThemeForest. It helps us a lot keep improving our themes and adding new features. 🙂
- AuthorPosts
You must be logged in and have valid license to reply to this topic.