Show sidebar wdget only on shop page not category archives
-
Hi, i setup a woo shop in testing envirement, my shop page shows all categories, not products.
In loop-start.php i have made a widget area with folowing code:
<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘Shop Header Widgets Area’) ) :
endif; ?>in functions the folowing code:
//add a widget area in the header as described by TomHart
if ( function_exists (‘register_sidebar’) )
register_sidebar( array(
‘name’ => __( ‘Shop Header Widgets Area’ ),
‘id’ => ‘sidebar-header’,
‘description’ => __( ‘second navigation’ ),
‘before_widget’ => ‘<aside id=”%1$s” class=”widget %2$s”>’,
‘after_widget’ => ‘</aside>’,
‘before_title’ => ‘<h3 class=”widget-title”>’,
‘after_title’ => ‘</h3>’,
) );when i place a widget it is displaying on shop page and category pages, i do not want display on all my category pages, ONLY on shop page!
can somebody helping me out without a plugin?
thanks
- The topic ‘Show sidebar wdget only on shop page not category archives’ is closed to new replies.