Support » Plugin: WooCommerce » Change shop sidebar

  • Resolved Ulrich



    I am interested in changing the default sidebar to another. I solved this by using the template “sidebar.php” from the shop folder and by changing “shop” to a sidebar in the theme.

    Is this the best way or could I have done it with a function also?
    Where can I find the sidebar-shop.php? Does it exist?


Viewing 5 replies - 1 through 5 (of 5 total)
  • there’s no sidebar-shop.php, there is only sidebar.php located in the templates folder under the “shop” folder.

    you have this file copied to a “woocommerce” folder within your active theme, correct?
    If so, the method you used is appropriate.

    I found the shop widget area a bit unwieldy as I wanted to have the same set of widgets throughout my site, so i just did this:

    remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10);



    So I did a bit of testing and I created a sidebar-shop.php in my child theme. It worked! I just had to add a simple code the functions.php so that it is displayed in the widget area.
    This is specific to the Responsive Theme.

    The shop sidebar default to the main sidebar. What I tested was I could change the size of the widget in the shop page without changing the width of it on other pages.

    WooCommerce is good as the possibilities are endless.

    @bheadrick thank you for your input




    Hello Ulrich
    Can you explain in details, how you did this.
    Becouse I tried to follow your steps, but I cant make it.



    Hey Mattadorr,

    What theme are you using?

    The general idea is to copy the sidebar.php from your parent theme to a newly created folder “woocommerce” in the child theme. Rename the file then to sidebar-shop.php.

    You can then use WooSidebar to display different widgets on the shop page.




    Is your shop sidebar displaying ONLY on the shop page? I’ve created a sidebar-shop.php and gave it an id of ‘sidebar-shop’. It shows up in my widget panels but does not display on the shop page. It seems that when I change the id from ‘shop-widgets’ to ‘sidebar-shop’ (as you did) it removes the sidebar from the shop page.

    If you could elaborate a bit on how you accomplished this, I would be greatly appreciative.

    Also, if you could include a link to your site so I can look at what you accomplished, that may be of help to me as well. Thanx.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change shop sidebar’ is closed to new replies.