Simple way to only show header image on presentation page?

  • Author
    Posts
  • #34123
    Ryan

    Hi everyone,

    Loving this theme so far and starting to build it out for a site I’m working on. I’m wondering if there’s a simple way to only show the header image on the presentation page and not pages or posts (e.g. here)? I had to slightly modify the position to get the image where I wanted it (over the slider) but it’s there on every page/post. Possible bc I made the position fixed instead of relative?

    #34137
    Zed
    Cryout Creations mastermind

    The homepage can be uniquely identified with body.home. As a result, you can append this to any custom styling rule to only make it apply on the homepage:
    body.home #my-container { display: none; }


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #34173
    Shirley

    I am having the same problem. I just want to show my header on the presentation page and I want to make different headers (the full header and I don’t want the site title showing at all) on the other pages. I am not experienced in CSS and I don’t know where to put the code that ZED listed above. Is there a way or a plugin that i can use to only show the Site Title on the presentation page and can I put what I want on the other header pages. Thank you.

    #34213
    Zed
    Cryout Creations mastermind

    If the other pages are in fact (static) pages, you can use the theme’s featured image as header image option and define featured images (with the proper size) for the other pages which will be displayed in the header area.

    Otherwise, you may be able to find a plugin to help you do this with categories/posts as well.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #34402
    Lisa van Noorden

    Hi there, I am having the same issue. I want a different header on each ( static) page. The solution you are giving does not work. I use a standard template and put anther header image as featured image, but the page keeps showing the regular header image. What am I doing wrong?

    #34454
    Zed
    Cryout Creations mastermind

    Lisa, the featured images you set to pages you want custom header images to be used on need to be large enough to fill the header are.

    Also check that the option for this is actually enabled in theme settings.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Simple way to only show header image on presentation page?’ is closed to new replies.