Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kabbo508/5c964514f84e1bea21c1e82f80984d7a to your computer and use it in GitHub Desktop.
Save kabbo508/5c964514f84e1bea21c1e82f80984d7a to your computer and use it in GitHub Desktop.
How to make Single Product pages for WooCommerce full width (in Divi, or any theme)
/*** Take out the divider line between content and sidebar for Single WooCommerce Product Pages ***/
.single-product #main-content .container:before {background: none;}
/*** Hide Sidebar for Single WooCommerce Product Pages ***/
.single-product #sidebar, .single-product #sidebar-secondary {display:none;}
/*** Expand the content area to fullwidth for Single WooCommerce Product Pages ***/
@media (min-width: 981px){
.single-product #left-area, .single-product #primary {
width: 100%;
padding: 23px 0px 0px !important;
float: none !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment