I have a problem showing my 2nd right sidebar only on woocommerce single-product page. It won't show it at all. Below is what I have done. What is wrong or what am I missing?
I added this to my woocommerce page, single-product.php file
<?php
/**
* woocommerce_sidebar hook
*
* @hooked woocommerce_get_sidebar - 10
*/
/* do_action('woocommerce_sidebar'); */
include("sidebar5.php");
?>
I have added the sidebar to my wp-content > themes > theme > includes > sidebars.php file. It already had 4 sidebars (one right and three footer):
register_sidebar( array(
'name' => 'Sidebar Woo',
'id' => 'sidebar-5',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div> <!-- end .widget -->',
'before_title' => '<h4 class="widgettitle">',
'after_title' => '</h4>',
) );
I created a sidebar5.php page :
<?php if ( is_active_sidebar( 'sidebar-5' ) ){ ?>
<div id="sidebar">
<?php dynamic_sidebar( 'sidebar-5' ); ?>
</div> <!-- end #sidebar -->
<?php } ?>