Full Width Responsive Header Image In Genesis

Most themes include the following code in the child themes functions file you can modify to add a full width responsive header image to your Genesis child theme.

add_theme_support( 'custom-header', array(
	'width'           => 1080,
	'height'          => 120,
	'header-selector' => '.site-title a',
	'header-text'     => false
) );

And then you can modify the values for the width under the Site Header section of your child themes style.css file to match your full width image dimensions.

.header-image .site-title a {
	background-color: transparent;
	max-width: 1080px;
	min-height: 120px;
	padding: 0;
}

This is what you get on a desktop computer with a large screen:

full-width

While that method enables you to add a full width header image in any Genesis child theme, it doesn’t make the header image responsive on smaller screens.

Not Responsive

This is what you get on smaller screen widths:

not-responsive

It cuts off the header image when you reduce the screen width.

Responsive

Members can login to get the code which enables you to get this on any size screen:

responsive

Demo Video

Here’s the solution for members:

Related Tutorials

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.