I'm learning genesis, css, and how it all fits together. I've created my own child theme, and copied the css file from the Genesis parent into my child theme.
I've created a header image, now i want to add that image. Just to clarify, i'm doing this to get my head around the fundamentals, and how it fits together. So, to add my image to the header, is this something that is specified in style.css, or in child-theme/functions.php, or both?
As i'm creating a theme from scratch the header options in the WP dashboard are not present...
I can understand that this might be something you could write a book on, but perhaps being pointed in the right direction might help my understanding. I'm not looking for step by step directions (although that might help), just, is it a hook / action, or a bit of css?
Adding the following code to your functions.php file will get you started;
add_theme_support( 'genesis-custom-header', array( 'width' => 960, 'height' => 160 ) );
You'll also need to add CSS to your style.css file to make sure it displays properly.
The official documentation on custom headers is also worth reading;
Thanks Peter, that's a perfect start!
You must be logged in to reply to this topic.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!