• Resolved franckeg

    (@franckeg)


    The sidebar works on other pages but not on the Woocommerce Shop page
    Using Divi theme.
    Created child theme
    created a new template by copying page.php
    then created a page using this new template
    This is the only thing in the child theme
    This new page (with new template) and other pages (that use the default template) see the sidebar but the Shop page which uses the default template doesn’t
    Any ideas?

    Thanks

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter franckeg

    (@franckeg)

    I ended up adding a widget with what I wanted and modified sidebar.php
    My widget = et_pb_widget_area_1

    <?php if ( is_woocommerce() && is_active_sidebar( ‘et_pb_widget_area_1’ ) ) :?>
    <div id=”sidebar”>
    <?php dynamic_sidebar( ‘et_pb_widget_area_1’ ); ?>
    </div>
    <?php elseif ( is_active_sidebar( ‘sidebar-1’ ) ) : ?>
    <div id=”sidebar”>
    <?php dynamic_sidebar( ‘sidebar-1’ ); ?>
    </div> <!– end #sidebar –>
    <?php endif; ?>

    Hi. I have the same problem. Advice me, you changed sidebar.php in woocommerce plugin’s files?

    Thread Starter franckeg

    (@franckeg)

    There might be a sidebar.php in our theme. If not create one.

    get_sidebar function includes this template when use
    https://codex.www.ads-software.com/Function_Reference/get_sidebar

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not working in Shop page’ is closed to new replies.