Well, the theme isn’t broken. This isn’t a bug. I’m sure the theme was designed by committee and this was how they decided it worked best.
This can be worked with. Here’s what I did:
First, I cropped the header image to cut off the white space on the left and right sides, leaving about 10-15px for padding so the image isn’t right up against the edge of the viewport.
Then, I created a child theme for Twenty Thirteen.
- Create a new folder in the same folder as the twentythirteen folder (default: ../wp-content/themes/) named “twentythirteen-child”.
- In this new folder, place your cropped header image, and create a new file called “style.css”
- Paste the following into the new “style.css”:
/*
Theme Name: Twenty Thirteen Child Theme
Theme URI: https://twentythirteendemo.wordpress.com/
Description: Child theme for the Tewenty Thirteen Theme;
Template: twentythirteen
Author: Put your name here;
Author URI: Put your URL here
Version: 1.0;
*/
@import url("../twentythirteen/style.css");
.site-header .home-link{
background-image: url(web-logo.png);
margin: 0 auto;
padding: 0;
max-width: 1080px;
height: 230px;
min-height: 100px;
background-repeat: no-repeat;
background-position:center;
background-size: contain;
}
@media (max-width: 550px){
.site-header .home-link{
height: 150px;
}
}
@media (max-width: 350px){
.site-header .home-link{
height: 120px;
}
}
Finally activate the child theme and go into the customize panel. Remove the header text and header images.
You may or may not have to adjust the links in the style sheet to suit your environment.
You can adjust the height in the media queries (and add more for different sizes if you wish) to your liking. This will control the white space that appears above and below your header image when the page is resized.
This should work in all modern browsers (IE 9 and newer). For older browsers it will revert to cropping as before.
I’ve tested in Windows:
IE9, IE10
FF 23
Chrome 28
Opera 15
Safari 5
Arch Linux:
Chromium 28
FF 23
Android/Nexus 7:
Chrome
FF
Windows Phone 8:
Lumia 920 (IE)