Viewing 3 replies - 1 through 3 (of 3 total)
  • class-wc-widget-product-categories.php, but I should not edit that because the next WooCommerce update will overwrite your changes.

    Anyway it normally comes with classes. Try putting it inside a sidebar.

    If you leave it in its currect position, you can select it with:

    body > ul {
      background-color: Red !important;
    }
    Thread Starter janbrokes

    (@janbrokes)

    Hello thanks for help. Is is possible to echo it in archive page without adding this widget to any widget area in widget settings?

    this is my code

              <?php add_filter( 'widget_display_callback', 'spice_display_widget_logic',10,2);
    
    function spice_display_widget_logic( $instance, $widget) {  
      
      if ( $widget->id == 'widget-36_woocommerce_product_categories-2') { // we are controlling the visibility of calendar-4 widget.    
    	
    	if ( is_page('24')) {    // calendar-4 widget will NOT display on page with id 24          
    	  return false;     }  
      }
    }     ?>   

    Its not usual to see support for developer level code in forum answers but someone may come in.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘product category widget’ is closed to new replies.