• Resolved mahabarbara

    (@mahabarbara)


    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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 https://www.ads-software.com/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).

    Thread Starter mahabarbara

    (@mahabarbara)

    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.

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

    try to follow https://www.ads-software.com/support/topic/show-header-image-on-home-page-only?replies=5#post-4034643

    Thread Starter mahabarbara

    (@mahabarbara)

    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.

    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:
    https://pastebin.com/hCBX5nTJ

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

    Thread Starter mahabarbara

    (@mahabarbara)

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Twenty Eleven Theme, Header Image Question’ is closed to new replies.