WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] Woo Commerce Side bar on product page (5 posts)

  1. elames
    Member
    Posted 1 year ago #

    http://christinadawnjewelry.com/jewelry-shop/

    If you look at this page, you will see a different sidebar which I assume comes from woo commerce, rather than the sidebar from the rest of the site. How can I remove this and use my normal sidebar on the page.

    Thank you very much!

    http://wordpress.org/extend/plugins/woocommerce/

  2. elames
    Member
    Posted 1 year ago #

    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 !

  3. jameskoster
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  4. elames
    Member
    Posted 1 year ago #

    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

  5. elames
    Member
    Posted 1 year ago #

    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>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic