Home Forums Pro Themes Clean Commerce Pro Remove filter

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #66030
    Alexander Leipold
    Participant

    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.

    #66067
    wensolutions
    Keymaster

    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!!

    #66214
    Alexander Leipold
    Participant

    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

    #66256
    wensolutions
    Keymaster

    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!!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.