No Sidebar Widget Displaying
-
I created a sidebar ‘Shop’ in my child’s functions.php. It is displaying on the backend (Appearance > Widgets) but it is not displaying on the frontend (anything I put in there does not display). I’ve even tried putting the widget in another sidebar location but no display as well.
functions.php (child theme):
register_sidebar( array(
‘id’ => ‘shop-sidebar’,
‘name’ => esc_html__( ‘Shop’, ‘obsidian-child’ ),
‘description’ => esc_html__( ‘Sidebars to display on the Shop pages’, ‘obsidian-child’ ),
‘before_widget’ => ‘<div id=”%1$s” class=”sbar”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h2 class=”widget-title”>’,
‘after_title’ => ‘</h2>’,
) );WooCommerce archive-product.php (child theme):
<div class=”shopl”><?php if ( is_active_sidebar( ‘shop-sidebar’ ) ) : ?>
<?php dynamic_sidebar( ‘shop-sidebar’ ); ?>
<?php endif; ?>
…..
</div>Any idea why it won’t display on the frontend?
The page I need help with: [log in to see the link]
- The topic ‘No Sidebar Widget Displaying’ is closed to new replies.