Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2

Thread: changing header

  1. #1
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Hi - I want to do a site in WP, with 5 pages. I would like to have a different header image for each page. The images would be all the same size but would be of different things representing the page content. Is this possible in WP?

    And if so, how?

    Thanks,
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  2.  

  3. #2
    Junior Member
    Join Date
    Nov 2010
    Posts
    21
    Member #
    25283
    Quote Originally Posted by AlphaMare View Post
    Hi - I want to do a site in WP, with 5 pages. I would like to have a different header image for each page. The images would be all the same size but would be of different things representing the page content. Is this possible in WP?

    And if so, how?

    Thanks,
    The header image is normally set via the css. So, with this in mind you need to locate the code relative to the image in the css file and write similar div code with the new image applied. Then in the header you simply use the page id to decide witch image to show.
    e.g.
    <?php if (is_page('249')){
    //insert suitable code to choose the class you need
    } ?>

    Hope this helps


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 07:53 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com