• Resolved asirangelo

    (@asirangelo)


    Hi, I want to display the header image on my HOME PAGE ONLY, so I edited the header.php and introduced the code <?php if( is_home() || is_front_page() ) : ?> before the ‘get header’ image command. It worked… but the header image is also appearing on the “blog” page. That’s the ONLY page beside the Home Page that the header image is showing. What code do I insert so I can I make sure the header image doesn’t show on the blog page?

    The “blog” page is the one containing all my recent posts, the one assigned as the Posts page on the Customize > Static Front Page menu. And yes, my home page is a Custom Hope Page. My website is https://www.lastbroadcastcomic.com.

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Template Express

    (@danstriker)

    Hello, just checked out your website and your blog page looks fine – I guess you fixed your problem?

    Thread Starter asirangelo

    (@asirangelo)

    Hi! Yeah, so the only way I could fix it was to add and then remove the header image from the Customize > Header screen, then use the HP Display Header plug in to add the header image to the home page only. But since I don’t know a lot about code I still don’t understand why the header image was showing on the Posts page if I used the ‘if is home ‘ command.

    catquecaos

    (@catquecaos)

    Hi, I also want to display the header image on my homepage only, and I don’t have a blog page so I won’t have the same problem as asirangelo. I tried the solution they said worked for them (introducing the code in header.php) but nothing happened. Image still appears on all pages.

    Any idea what I could be doing wrong? I am new to code to possibilities are many ??

    catquecaos

    (@catquecaos)

    Nevermind! I found another thread called Delete header image on pages

    Told me I had to delete part of the code then add something different. It worked.

    Theme Author Template Express

    (@danstriker)

    OK great

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove header image from Posts page’ is closed to new replies.