Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter elames

    (@elames)

    Anyone have a simple solution to this sidebar issue. I am not a coder and if I have to leave it I will but prefer to have my own sidebar showing.

    thanks anyone !

    Plugin Contributor James Koster

    (@jameskoster)

    WooCommerce looks first for sidebar-shop.php, if that doesn’t exist it just loads the standard sidebar.php file. So it’s possible that there is something in your sidebar.php file causing this. It’s hard to know without having access to the code, though.

    Thread Starter elames

    (@elames)

    I don’t see a sidebar-shop.php Where would I find it? I only find a side-navigation.php

    I asked a fellow at woo themes, but he couldn’t get it to work either.

    help please!
    Thank you

    Thread Starter elames

    (@elames)

    Ok…I FINALLY found the solution!!

    Create a sidebar-shop.php

    Put in this code then ftp to the theme folder.

    Hope this will help someone!!

    <div id=”sidebar”>

    <?php
    wp_reset_query();
    if(is_product()) {
    generated_dynamic_sidebar();
    } else {
    $shop_page_id = get_option(‘woocommerce_shop_page_id’);
    $name = get_post_meta($shop_page_id, ‘sbg_selected_sidebar_replacement’, true);
    if($name) {
    generated_dynamic_sidebar($name[0]);
    }
    }
    ?>
    </div>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Woo Commerce Side bar on product page’ is closed to new replies.