Can we use different headers?

Community Forums Forums Design Tips and Tricks Can we use different headers?

This topic is: not resolved

This topic contains 17 replies, has 4 voices, and was last updated by  AC 1 year, 4 months ago.

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #50951

    alyssaavant
    Participant
    Post count: 12

    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?

    #50952

    Susan
    Moderator
    Post count: 9406

    Try this plugin:

    http://wordpress.org/plugins/wp-display-header/


    Susan @ Graphically Designing I offer theme customizations I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #50953

    alyssaavant
    Participant
    Post count: 12

    It says your theme does not support custom headers when I try to install.

    #50955

    Susan
    Moderator
    Post count: 9406

    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)…


    Susan @ Graphically Designing I offer theme customizations I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #50962

    braddalton
    Participant
    Post count: 10563

    Or you could use CSS code and upload your headers to your child themes images folder:

    Code tested on the Lifestyle theme.


    #50963

    alyssaavant
    Participant
    Post count: 12

    I now get a server error after adding that?

    #50965

    alyssaavant
    Participant
    Post count: 12

    The stuff that susan said – help!

    #50966

    braddalton
    Participant
    Post count: 10563

    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.


    #50967

    alyssaavant
    Participant
    Post count: 12

    but will the CSS allow me to choose which pages the header shows up on

    #50968

    Susan
    Moderator
    Post count: 9406

    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.


    Susan @ Graphically Designing I offer theme customizations I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #50969

    alyssaavant
    Participant
    Post count: 12

    Susan,

    Even after I added the string of code to the functions file it says your theme does not support custom headers?

    #50970

    alyssaavant
    Participant
    Post count: 12

    Brad

    Do I add both strings? How do I put the other header on more than one page?

    #50971

    AC
    Blocked
    Post count: 7712

    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.

    #50972

    AC
    Blocked
    Post count: 7712

    P.S. To Susan and Brad – I did wrap the code in PHP however it still stripped out part of the code.

    #50973

    braddalton
    Participant
    Post count: 10563

    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


Viewing 15 posts - 1 through 15 (of 18 total)

The topic ‘Can we use different headers?’ is closed to new replies.