• Hi guys, I’m trying to customize the layout of my shop page by using a custom template within my Genesis child theme. My template reads:

    <?php get_header() ?>
    
    <div class="content">
    <div class="wrap">
    <div class="two-thirds first">
    <?php woocommerce_content(); ?>
    </div>
    <div class="one-third">
    <?php if ( dynamic_sidebar('shop_page') ) :else : endif;?>
    </div>
    </div>
    </div>
    
    <?php get_footer()?>

    I noticed that woocommerce_content wasn’t showing a sidebar, so I thought I could add my own custom sidebar. When I did this, also adding it to my functions file, I added some of the woocommerce widgets to the sidebar. But, the sidebar isn’t showing up on my shop page. Anyone have any advice?

    https://greenknightlogging.dazelprintandweb.com/index.php/lumberproducts/

    https://www.ads-software.com/plugins/woocommerce/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @pshay92,

    I noticed that you have made wrong call of shop sidebar.

    Could you please try to use this one?

    <?php if ( is_active_sidebar( 'shop_page' ) ) :
        dynamic_sidebar('shop_page');
    endif; ?>

    Let me know how it goes.

    Thread Starter pshay92

    (@pshay92)

    I replaced the dynamic sidebar code with the code you recommended and it didn’t work. The sidebar still isn’t visible!

    Sidenote for anyone else reading: that code in my original post for calling a sidebar always works within my custom templates.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shop Template – woocommerce_content no showing sidebar’ is closed to new replies.