Filter widgets not showing
-
Hello,
I tried everything but for some reason all filter widgets are not working, or in other words they are not showing in sidebar. Other widgets works.
I have contacted the developer on themeforest where i bought the theme, and he says that this is not a problem in theme, and it is problem in WooCommerce.
So my last hope is here…
i searched in theme files and i found one part of the code which creates problems with widgets.
function hc_after_setup_theme(){ add_theme_support('woocommerce'); } function hc_remove_woocommerce_default_shop($args, $post_type) { if (class_exists('WooCommerce')) { if ( $post_type == "product" ) { $args['has_archive'] = true; } } return $args; } add_action('after_setup_theme', 'hc_after_setup_theme'); add_filter('register_post_type_args', 'hc_remove_woocommerce_default_shop', 20, 2);
if i delete this:
add_filter('register_post_type_args', 'hc_remove_woocommerce_default_shop', 20, 2);
`then filter widgets works, but unfortunately the page layout changes drastically after that, which again creates a problem for me.
so i dont know how to fix it…
can you help me
Thank you
- The topic ‘Filter widgets not showing’ is closed to new replies.