- This topic has 3 replies, 2 voices, and was last updated 6 years, 10 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Home › Forums › Pro Themes › Clean Commerce Pro › Remove filter
Hello,
how can I remove the filter ‘loop_shop_columns’ in my child theme? Can someone help me please?
You can find the filter in the class Clean_Commerce_Woocommerce at woocommerce.php on line 71.
Thanks in advance.
Hello @leipold-shop24,
To remove above-mentioned filter through add below given code in your child theme’s functions.php .
remove_filter( 'loop_shop_columns', array( $this, 'woo_loop_columns' ) );
Hope this helps.
Best Regards!!
Hello,
thank you for your answer. But the code produces the following error:
Fatal error: Uncaught Error: Using $ this when not in object context in G: \ xampp \ htdocs \ BetaBlog \ wp-content \ themes \ ls24-clean-commerce-pro \ functions.php: 17 Stack trace: # 0 G: \ xampp \ htdocs \ BetaBlog \ wp-settings.php (424): include () # 1 G: \ xampp \ htdocs \ BetaBlog \ wp-config.php (89): require_once (‘G : \\ xampp \\ htdocs … ‘) # 2 G: \ xampp \ htdocs \ BetaBlog \ wp-load.php (37): require_once (‘ G: \\ xampp \\ htdocs … ‘) # 3 G: \ xampp \ htdocs \ BetaBlog \ wp-admin \ admin.php (31): require_once (‘G: \\ xampp \\ htdocs …’) # 4 G: \ xampp \ htdocs \ BetaBlog \ wp-admin \ customize.php (13): require_once (‘G: \\ xampp \\ htdocs …’) # 5 {main} thrown in G: \ xampp \ htdocs \ BetaBlog \ wp-content \ themes \ ls24-clean- commerce-pro \ functions.php on line 17
Hello @leipold-shop24,
We would like to apologize for the inconveniences.
Please make us clear the no. of the column you want to set for your shop page so that we can help you with the child theme since simply removing the filter is generating the error.
Thank you 🙂 .
Best Regards!!
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |