Move sidebar to the left side

Hi,

I found the following post that helped me to only show sidebar on the shop page: Sidebar only on WooCommerce shop pages

But how can I can put the sidebar on the left side instead of the right (since that’s the default). I can see that the ‘left’ and ‘right’ classes are being used but I wanted to ask before using JS to remove/add class, etc.

Thanks

Hello @kgpthemex,

Thanks for writing to us.

In order to align the sidebar I would suggest you go to the Cornerstone—>Theme Options —>Layout and Design ---->Content Layout —>Set it as “Sidebar/Content”

Cornerstone (4)

Please note it would be applicable globally on the website.

Hope it helps
Thanks

@prakash_s

Thanks for getting back to me so quickly. Sorry, I should have clarified. The context of the post was that I wanted to keep the global setting set to “full width”, hence why I’m using the code from the other post.

Your suggestion was the first thing I thought of but that would mean that all pages will have a sidebar by default and that’s not what I want.

Thanks

Hey @kgpthemex,

If you use the code given by @Thai in the old thread here:

Your choices would the following;

  • content-sidebar - The content is on the left while the sidebar is on the right side.
  • sidebar-content - The sidebar is on the left side while the content is displayed on the right side.
  • fullwidth - Displays the content only with no sidebars.

Best Regards.

@ruenel,’

Thanks for that. I didn’t realize that the layout could be controlled simply by the change in the variable. Thanks for the clarification. It worked beautifully!

Glad to hear that, @kgpthemex.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.