Skip to content

Instantly share code, notes, and snippets.

@srikat
Last active January 8, 2016 04:11
Show Gist options
  • Save srikat/e69ada372f2bc3695659 to your computer and use it in GitHub Desktop.
Save srikat/e69ada372f2bc3695659 to your computer and use it in GitHub Desktop.
//* Add support for custom header
add_theme_support( 'custom-header', array(
'width' => 270,
'height' => 80,
'header-selector' => '.site-title a',
'header-text' => false
) );
//* Add support for custom header
add_theme_support( 'custom-header', array(
'width' => 350,
'height' => 270,
'header-selector' => '.site-title a',
'header-text' => false
) );
// Remove the header right widget area
unregister_sidebar( 'header-right' );
.title-area {
float: left;
padding: 0;
width: 360px;
}
.site-title {
font-family: 'Oswald', sans-serif;
font-size: 48px;
line-height: 1;
margin: 0 0 16px;
text-transform: uppercase;
}
/* Title Area
--------------------------------------------- */
.title-area {
/*float: left;*/
margin: 0 auto;
padding: 0;
width: 360px;
}
.site-title {
font-family: 'Oswald', sans-serif;
font-size: 48px;
line-height: 1;
/*margin: 0 0 16px;*/
margin: 0 0 20px;
text-transform: uppercase;
}
.header-image .site-title a {
background-color: none;
max-width: 270px;
min-height: 80px;
padding: 0;
}
.header-image .site-title a {
/*background-color: none;*/
background-position: center;
max-width: 350px;
min-height: 270px;
padding: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment