I have Genesis and the Lifestyle theme
I am wondering can I use a different header on several pages on this theme and if so how?
It says your theme does not support custom headers when I try to install.
You can add support for a custom header in your functions.php file:
... edited to remove the code, as there is apparently an error in there, and I don't want people who are searching for a solution in the future to use this code.
(You can change the height and width to your preferred dimensions)...
Or you could use CSS code and upload your headers to your child themes images folder:
Code tested on the Lifestyle theme.
I now get a server error after adding that?
The stuff that susan said - help!
The CSS code goes in your child themes style.css file not functions.php file.
You would also need to change the post or page i.d's to your own which you can grab from the source code of your website.
The image paths also need to be changed to the name of your images.
but will the CSS allow me to choose which pages the header shows up on
If your site is down because of a change made to your functions.php file, you will need to replace your functions.php file with a fresh copy on your hosting site.
Even after I added the string of code to the functions file it says your theme does not support custom headers?
Do I add both strings? How do I put the other header on more than one page?
Here is the correct code, there was a little bit missing from Susan's:
**THE CODE IS BEING STRIPPED OUT**
Email me on my website and I will send you a text file.
P.S. To Susan and Brad - I did wrap the code in PHP however it still stripped out part of the code.
Anita. Yeah sometimes that can happen which is why Gists are good as you can also change the code if you miss a semi colon or something.
@alyssaavant I believe CSS is a better option for adding different headers.
Yes you simply change the post or page i.d which you grab from the body class in your source code.
Wrote a post with 15 code snippets for this exact purpose last week
The topic ‘Can we use different headers?’ is closed to new replies.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!