Skip to content

Instantly share code, notes, and snippets.

@carasmo
Last active November 2, 2016 22:06
Show Gist options
  • Save carasmo/98a8b8fdc4574c0cd2f55b0fdd9b3667 to your computer and use it in GitHub Desktop.
Save carasmo/98a8b8fdc4574c0cd2f55b0fdd9b3667 to your computer and use it in GitHub Desktop.
Full Width CSS adjustments for home page of Foodie Pro Genesis Child Theme
/* register and hook the widget area in the genesis_before_content area for home page only */
/*fake demo only DON't use */
nav.nav-primary:after {
content: '';
width: 100%;
height: 0px;
padding-top: 30%;
background: url(http://shaybocks.co/foodiepro/wp-content/uploads/2012/01/nectarines-680x400.jpg) no-repeat center center;
background-size: cover;
margin-top: 30px;
}
/* don't use above */
/* Home Page Structure */
body.home.foodie-pro .site-container {
max-width: none
}
body.home.foodie-pro .site-container .site-header .wrap,
body.home.foodie-pro .site-container nav.nav-primary .wrap,
body.home.foodie-pro .site-inner,
body.home.foodie-pro .site-footer .wrap {
max-width: 1140px;
padding-left: 30px;
padding-right: 30px;
margin-left: auto;
margin-right: auto;
display: block;
clear: both;
float: none;
}
body.home.foodie-pro .footer-widgets {
max-width: 1140px;
margin-left: auto;
margin-right: auto;
}
body.home.foodie-pro .site-container,
body.home.foodie-pro .before-header {
padding-left: 0;
padding-right: 0;
}
@media only screen and (max-width: 1023px) {
body.home.foodie-pro .site-container,
body.home.foodie-pro .before-header {
padding-left: 0;
padding-right: 0;
}
body.home.foodie-pro .site-container .site-header .wrap,
body.home.foodie-pro .site-container nav.nav-primary .wrap,
body.home.foodie-pro .site-inner,
body.home.foodie-pro .footer-widgets,
body.home.foodie-pro .site-footer .wrap {
padding-left: 5%;
padding-right: 5%;
}
}
@carasmo
Copy link
Author

carasmo commented Nov 2, 2016

screen shot 2016-11-02 at 12 11 29 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment