July 16, 2013 at 10:07 am #50951
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?July 16, 2013 at 10:24 am #50952July 16, 2013 at 10:30 am #50953
It says your theme does not support custom headers when I try to install.July 16, 2013 at 10:40 am #50955
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)…
July 16, 2013 at 11:19 am #50962
Or you could use CSS code and upload your headers to your child themes images folder:
Code tested on the Lifestyle theme.
July 16, 2013 at 11:21 am #50963
I now get a server error after adding that?July 16, 2013 at 11:22 am #50965
The stuff that susan said – help!July 16, 2013 at 11:24 am #50966
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.
July 16, 2013 at 11:26 am #50967
but will the CSS allow me to choose which pages the header shows up onJuly 16, 2013 at 11:27 am #50968
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.
July 16, 2013 at 11:27 am #50969
Even after I added the string of code to the functions file it says your theme does not support custom headers?July 16, 2013 at 11:42 am #50970
Do I add both strings? How do I put the other header on more than one page?July 16, 2013 at 11:44 am #50971
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.July 16, 2013 at 11:46 am #50972
P.S. To Susan and Brad – I did wrap the code in PHP however it still stripped out part of the code.July 16, 2013 at 11:57 am #50973
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.