• Hello

    If Widget good plugin. But have questions
    we try to make a function for shop page Woocommerce have problem widget hide but sidebar not hide

    
           add_filter('if_visibility_rules', 'woocommerce_shop_widget');
    
           function woocommerce_shop_widget(array $rules) {
    
             $rules['woocommerce_shop_widget'] = array(
               'name'      =>  __('Woocommerce Shop', 'yootheme-primonly'),     // name of the condition
               'callback'	=>	'is_shop',
             );
    
             return $rules;
           }
    

    https://share.getcloudapp.com/jkuleOKD

    Thank you

  • The topic ‘Widget hide but sidebar not hide’ is closed to new replies.