WordPress.org

Forums

WooCommerce - excelling eCommerce
[resolved] Change shop sidebar (3 posts)

  1. Ulrich
    Member
    Posted 5 months ago #

    Hello,

    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.
    get_sidebar('shop');

    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?

    Ulrich

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

  2. bheadrick
    Member
    Posted 5 months ago #

    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);

  3. Ulrich
    Member
    Posted 5 months ago #

    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.
    http://pastebin.com/0UYkBGM2
    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

    Ulrich

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.