Remove sidebar / widgets from WooCommerce shop page

Is there an easy way to remove the sidebar from the WooCommerce shop page?
I set the page layout to ‘Full with’ and to ‘No sidebar’, but that didn’t change anything.
Maybe some CSS?

Hello there,

I hope you are doing well today.

You can use the following CSS code to remove the sidebar by going to Appearance > Customize > Additional CSS and pasting it there.

/*Remove sidebar*/
div#secondary {
    display: none;

Best Regards,

Thank you.
I have added the code to the custom CSS, but this will remove the sidebar on ALl pages.
This site is a Learning Management System (LearnDash) with WooCommerce and we want to keep the sidebar on the training pages (posts). The progress bar and course topics (widgets in the sidebar) need to remain on these pages.
With the code you supplied, the sidebar (plus widgets) also disappears from the course pages/posts.
Is there a way to remove the sidebar from the Woocommerce shop page only? Or just the widgets. I haven’t set the search function, Archives and Meta to be in the sidebar, but they appear anyway.
Thanks for your help!

Hey there,

I hope you are well today and thank you for your question.

You can try the following

/Remove sidebar/
.woocommerce div#secondary {
display: none;

Best regards,

Thanks, this did the trick!
No sidebar in the WC-shop and a visible sidebar in the courses.
Best regards,

Hey there,

Great! let us know if there’s anything else we can assist you with.