Community Forums › Forums › Archived Forums › Design Tips and Tricks › Can we use different headers?
- This topic has 17 replies, 4 voices, and was last updated 13 years ago by
AnitaC.
-
AuthorPosts
-
July 16, 2013 at 10:07 am #50951
alyssaavant
MemberI 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 #50952Susan
ModeratorTry this plugin:
July 16, 2013 at 10:30 am #50953alyssaavant
MemberIt says your theme does not support custom headers when I try to install.
July 16, 2013 at 10:40 am #50955Susan
ModeratorYou 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 #50962Brad Dalton
ParticipantOr 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 #50963alyssaavant
MemberI now get a server error after adding that?
July 16, 2013 at 11:22 am #50965alyssaavant
MemberThe stuff that susan said - help!
July 16, 2013 at 11:24 am #50966Brad Dalton
ParticipantThe 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 #50967alyssaavant
Memberbut will the CSS allow me to choose which pages the header shows up on
July 16, 2013 at 11:27 am #50968Susan
ModeratorIf 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 #50969alyssaavant
MemberSusan,
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 #50970alyssaavant
MemberBrad
Do I add both strings? How do I put the other header on more than one page?
July 16, 2013 at 11:44 am #50971AnitaC
KeymasterHere 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.
Need help with customization or troubleshooting? Reach out to me.
July 16, 2013 at 11:46 am #50972AnitaC
KeymasterP.S. To Susan and Brad - I did wrap the code in PHP however it still stripped out part of the code.
Need help with customization or troubleshooting? Reach out to me.
July 16, 2013 at 11:57 am #50973Brad Dalton
ParticipantAnita. 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
July 16, 2013 at 12:14 pm #50976alyssaavant
MemberWhat would either of you charge me to help me do this?
July 16, 2013 at 4:12 pm #51008Brad Dalton
ParticipantJuly 16, 2013 at 4:58 pm #51019 -
AuthorPosts
- The topic ‘Can we use different headers?’ is closed to new replies.