- This topic has 2 replies, 2 voices, and was last updated 10 years, 10 months ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
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!
© 2023 WPEngine, Inc.