WordPress.org

Support

Support » Plugins and Hacks » WooCommerce » Sidebar ONLY at shop base page

Sidebar ONLY at shop base page

  • Hello,
    I run a Woocommerce site, with the theme bazar from Themeforest.
    I want to have a sitebar on the shop base page, to put in the ajax filter. But I can’t get the sidebar, only on the shop base page.
    I have made a page, and on that page selectet a sidebar, where i put in the ajax filter, and it shows up. But as soon I chose that site as shop base page, the sidebar goes away.

    In my theme there is a option to put a sidebar on the shop pages. It will then show the sidebar on the shop base page, but also on the product category pages, where I don’t need it at all.

    I hope someone here can tell me, how to add the sidebar only to the shop base page.

    Thank you 🙂

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

Viewing 1 replies (of 1 total)
  • Plugin Author James Koster

    @jameskoster

    This depends on how your theme is set up.

    But, you can use the is_shop() conditional query to check if you’re on the shop page before calling get_sidebar().

    See all the WooCommerce conditionals here; http://docs.woothemes.com/document/conditional-tags/

    There are also lots of classes applied to the body tag to change your layout with CSS dependent on the page you’re on as well.

Viewing 1 replies (of 1 total)
  • The topic ‘Sidebar ONLY at shop base page’ is closed to new replies.
Skip to toolbar