How to Remove Sidebar on Woocommerce Product Pages in Divi Theme

Sep 7, 2024 | Divi Tutorials, WooCommerce Tutorials

By Editorial Staff
Remove-Sidebar-on-Woocommerce-Product-Pages-in-Divi-Theme

Divi theme displays a sidebar on Woocommerce product pages. If you are looking to remove the sidebar on Woocommerce product pages, but maintain it on other pages, this tutorial is for you.

To be able to remove the sidebar, use the CSS below. It will hide the sidebar from your Woocommmerce product pages and center the product listing.

After logging in to your WordPress dashboard, then go to Divi >>Theme Options>>Custom CSS.

Then paste this code:

body.single-product #sidebar {
    display: none;
}
body.single-product #left-area {
                float: none;
                margin-left: auto;
                margin-right: auto;
}
body.single-product #main-content .container:before {
                display: none;
}

Ensure that the code is added to the right place within your Divi website.

That’s it for now. To be able to receive more of these tips. Subscribe to my newsletter.

Editorial Staff

Editorial Staff at Paluhost Web Services Ltd is a team of web experts with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing.

Recent Post

We Just Planted Our First 10 Trees

We're excited to share some green news with you today – Paluhost has officially planted its first 10 trees through our partnership with Ecologi. While 10 trees might...

PHP 8.5 Now Available on Our Platform

We're excited to announce that PHP 8.5 is now available on our hosting platform. As long-time supporters of PHP, we aim to provide our customers with the latest...

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Follow & Subscribe

Promos, content and more!

Recent Posts