-
Author
-
December 7, 2015 at 11:01 #91618
sashv13
ParticipantHi,
I would like to remove Tags and Categories from the quick view and product page.
How do I go about not showing these two things? While file do I need to edit to achieve this?
Thanks for your help
Attachments:
You must be logged in to view attached files.December 7, 2015 at 15:13 #91636sharmstr
ModeratorPut this in your child theme’s functions.php file.
COPY CODEadd_action( 'after_setup_theme', 'remove_product_meta' ); function remove_product_meta() { remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 ); }
Woo has been known to change the priority of their actions and filters, so after an update if this no longer works, look for the add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_meta’, 40 ) in /woocommerce/includes/wc-template-hooks.php and see if they changed ’40’ to another priority (number).
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
December 7, 2015 at 20:38 #91750sashv13
ParticipantThats Great! thank you It removed it from products page
However, it’s still appearing in the quick view. How do I remove it from quick view?
December 7, 2015 at 21:54 #91772sharmstr
ModeratorTry this instead
COPY CODEadd_action( 'after_setup_theme', 'remove_product_meta' ); function remove_product_meta() { remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 ); remove_action( 'woocommerce_single_product_modal_summary', 'woocommerce_template_single_meta', 40 ); }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
December 8, 2015 at 03:24 #91808sashv13
ParticipantThat did not work unfortunately
Also, I checked /woocommerce/includes/wc-template-hooks.php
woocommerce_single_product_modal_summary is not thereThere is only woocommerce_single_product_summary. This is why the code you provided worked for the product page but its not working for quick view
December 8, 2015 at 03:54 #91809sharmstr
ModeratorYou wont find it in wc-template-hooks.php because its a Kleo hook, not a woo hook. Its called in /kleo/lib/plugin-woocommerce/config.php.
In any case, it works fine for me. Try changing after_setup_theme to init.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.