admin管理员组文章数量:1130349
Good morning everybody.
I am trying to remove the Short Description in the Shop Page. Doing this in the Product Page was simple enough remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20);
But I have found no way to do the same in the previous Shop Page. There, I just want images, not text (or at least not the Short Description, a very long tables in this case).
Could you please help me?
Thanks anyway!
Good morning everybody.
I am trying to remove the Short Description in the Shop Page. Doing this in the Product Page was simple enough remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20);
But I have found no way to do the same in the previous Shop Page. There, I just want images, not text (or at least not the Short Description, a very long tables in this case).
Could you please help me?
Thanks anyway!
Share Improve this question asked May 30, 2017 at 12:30 AlbertoAlberto 111 silver badge1 bronze badge 2- Sorry I don't know exactly what page you'll need to remove code from without seeing the website. Could you hide the specific div and leave the content for SEO purposes? – Ben McMahon Commented May 30, 2017 at 15:11
- I have found a solution. Just commenting this in woocommerce/content-product.php <code> /** do_action( 'flatsome_product_box_after' ); */ </code>. This is the web: [link]speedrill/tienda – Alberto Commented May 31, 2017 at 7:15
1 Answer
Reset to default 1Try using one of the available shop loop item actions and remove call to WooCommerce template function woocommerce_template_single_excerpt using remove_action().
woocommerce_before_shop_loop_item(before thumbnail)woocommerce_before_shop_loop_item_title(before title)woocommerce_shop_loop_item_title(before price)woocommerce_after_shop_loop_item_title(before "Add to cart" button)woocommerce_after_shop_loop_item(after "Add to cart" button)
These actions are called in woocommerce/templates/content-product.php.
E. g. remove_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_single_excerpt' );. Make sure to match $priority with the $priority it was originally added.
Good morning everybody.
I am trying to remove the Short Description in the Shop Page. Doing this in the Product Page was simple enough remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20);
But I have found no way to do the same in the previous Shop Page. There, I just want images, not text (or at least not the Short Description, a very long tables in this case).
Could you please help me?
Thanks anyway!
Good morning everybody.
I am trying to remove the Short Description in the Shop Page. Doing this in the Product Page was simple enough remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20);
But I have found no way to do the same in the previous Shop Page. There, I just want images, not text (or at least not the Short Description, a very long tables in this case).
Could you please help me?
Thanks anyway!
Share Improve this question asked May 30, 2017 at 12:30 AlbertoAlberto 111 silver badge1 bronze badge 2- Sorry I don't know exactly what page you'll need to remove code from without seeing the website. Could you hide the specific div and leave the content for SEO purposes? – Ben McMahon Commented May 30, 2017 at 15:11
- I have found a solution. Just commenting this in woocommerce/content-product.php <code> /** do_action( 'flatsome_product_box_after' ); */ </code>. This is the web: [link]speedrill/tienda – Alberto Commented May 31, 2017 at 7:15
1 Answer
Reset to default 1Try using one of the available shop loop item actions and remove call to WooCommerce template function woocommerce_template_single_excerpt using remove_action().
woocommerce_before_shop_loop_item(before thumbnail)woocommerce_before_shop_loop_item_title(before title)woocommerce_shop_loop_item_title(before price)woocommerce_after_shop_loop_item_title(before "Add to cart" button)woocommerce_after_shop_loop_item(after "Add to cart" button)
These actions are called in woocommerce/templates/content-product.php.
E. g. remove_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_single_excerpt' );. Make sure to match $priority with the $priority it was originally added.
本文标签: customizationHiding Short Description in Shop PageWooCommerce
版权声明:本文标题:customization - Hiding Short Description in Shop Page, WooCommerce 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749175721a2327760.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论