Skip to content

Instantly share code, notes, and snippets.

@SimonPadbury
Created January 1, 2016 17:26
Show Gist options
  • Save SimonPadbury/de581076819106968134 to your computer and use it in GitHub Desktop.
Save SimonPadbury/de581076819106968134 to your computer and use it in GitHub Desktop.
WordPress: Using featured images (thumbnails) as hero backgrounds (2 of 2).
.hero-background-image[style] {
height: 340px !important;
background-color: #888 !important;
background-size: auto 340px !important;
@media (min-width: 768px) {
height: 440px !important;
background-size: auto 440px !important;
}
@media (min-width: 1024px) {
height: 500px !important;
background-size: auto 500px !important;
}
@media (min-width: 1200px) {
height: 600px !important;
background-size: auto 600px !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment