Last active
July 18, 2020 21:16
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*** 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