Skip to content

Instantly share code, notes, and snippets.

@About2git
Forked from srikat/style.css
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save About2git/910ee287b99e8f579d21 to your computer and use it in GitHub Desktop.

Select an option

Save About2git/910ee287b99e8f579d21 to your computer and use it in GitHub Desktop.
Using a wide header in Magazine Pro
//* Add support for custom header
add_theme_support( 'custom-header', array(
'default-text-color' => '000000',
'header-selector' => '.site-title a',
'header-text' => false,
'height' => 90,
'width' => 380,
) );
//* Add support for custom header
add_theme_support( 'custom-header', array(
'default-text-color' => '000000',
'header-selector' => '.site-title a',
'header-text' => false,
// 'height' => 90,
// 'width' => 380,
'height' => 200,
'width' => 1140,
) );
//* Remove the header right widget area
unregister_sidebar( 'header-right' );
.title-area {
width: 100%;
}
.header-image .site-title a {
min-height: 200px; /* Height of header image */
}
@media only screen and (max-width: 1024px) {
.header-image .site-header .title-area, .header-image .site-header .widget-area {
padding: 2rem 0;
}
}
@media only screen and (max-width: 768px) {
.header-image .site-title a {
min-height: 121px;
}
}
@media only screen and (max-width: 568px) {
.header-image .site-title a {
min-height: 100px;
}
}
@media only screen and (max-width: 480px) {
.header-image .site-title a {
min-height: 84px;
}
}
@media only screen and (max-width: 320px) {
.header-image .site-title a {
min-height: 56px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment