Hey there onelargeprawn,
Hope you’re well! 🙂
First, I suggest you use a child theme http://codex.ww.wp.xz.cn/Child_Themes or use css custom plugin like this: https://ww.wp.xz.cn/plugins/simple-custom-css/ if you will customize your theme.
I suggest you follow the image size that theme recommends and put this following code:
.header-background {
background-size: cover;
}
This will not make the whole background visible in smaller screen but it will fill the whitespace.
Hope it helps! 🙂
Take care,
Calvin
Hey Calvin,
Thanks for letting me know about child themes. All this time, I’ve been making changes to the parent theme so it’s great to be educated on the recommended way to do things 🙂
I added your code to the child theme’s CSS file and it definitely got rid of the white space when the browser is resized less than 768px.
Now, any ideas on how to get the head image to be responsive as the browser window is resized?
Cheers,
prawny
Hello prawny,
Glad it’s working for you! 🙂
Now, any ideas on how to get the head image to be responsive as the browser window is resized?
That is the reason why there is so much whitespace on the header section because they made the image responsive. When you are making an image responsive. you need to automatically calculate the height of an image depending on the current width of it.
I hope I am making sense here. 🙂
Best Regards,
Calvin