Sidebar ONLY at shop base page (2 posts)

  1. T-dawg
    Posted 3 years ago #

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


  2. James Koster
    Plugin Author

    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.