WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Twenty Eleven Theme, Header Image Question (7 posts)

  1. mahabarbara
    Member
    Posted 1 month ago #

    With the Twenty Eleven theme, is there a way to keep the header image on the home page but hide it on other pages? I could also live with putting a different header image on each page, if that's possible.

  2. alchymyth
    Forum Moderator
    Posted 1 month ago #

    keep the header image on the home page but hide it on other pages

    start by creating a child theme, then edit header.php; check the topics from the forum search http://wordpress.org/search/header+image+twenty+eleven+front+page+only

    putting a different header image on each page

    try using a 'featured' image for the pages (needs to have some minimum dimensions to be shown in the header).

  3. mahabarbara
    Member
    Posted 1 month ago #

    I successfully created a child theme and activated it, and assigned the header image I want to use on the first page. So that worked. After looking at the topics in the forum, however, I have no idea what to do next.

    Let's say I just want to delete the header image on the static pages but leave it on the active front page. Is there a standard bit of code that would do that, and where would I put it? Do I make a new css file and put it in the twentyeleven-child folder or add it to the style.css file I made already? I see that there is a css folder in wp-admin but I am reluctant to mess with whatever is in there.

    If I create new images for the static pages, I would need a different one for each page. I'm creating a site for an arts organization, and our concern is that all the pages look alike unless one scrolls down, and we'd like the user to be able to immediately distinguish between the "about us" page and the "donate to us" page, for example. Hiding the header image on the static pages would accomplish that.

  4. alchymyth
    Forum Moderator
    Posted 1 month ago #

    delete the header image on the static pages but leave it on the active front page

    try to follow http://wordpress.org/support/topic/show-header-image-on-home-page-only?replies=5#post-4034643

  5. mahabarbara
    Member
    Posted 1 month ago #

    Yes, I saw that forum discussion already. It assumes knowledge I do not have. Where does all that code even go? Can I copy and paste the code that works to the end of my style.css file for the child theme? I'm sorry, but I don't know css from spinach.

  6. alchymyth
    Forum Moderator
    Posted 1 month ago #

    It assumes knowledge I do not have.

    unfortunately, this forum is not able to teach this knowledge;
    if you are planning to customize your theme yourself, you will sooner or later need to learn the basics of php, html, and CSS.

    do you have a child theme already active?

    if so, you could create a header.php file in the child theme, with this content:
    http://pastebin.com/hCBX5nTJ

    this should show the header image only on the (static) front page, and not in any posts, or archives, etc...

  7. mahabarbara
    Member
    Posted 4 weeks ago #

    YES! Thank you! That worked beautifully. I appreciate this so much.

Reply

You must log in to post.

About this Topic