• Resolved pieterpluis

    (@pieterpluis)


    Hi Guys,

    I am using the Hemingway theme to provide some information about a rental house. Images are very important and i want to change the header display per page. I watched a video (https://www.youtube.com/watch?v=kLgPkovrnJM) where you can change the header with a slide bar plugin. I needed to go to editor in appearances, which isn’t displayed in my WordPress and add a code into the .header.php file. Is there an easier way to do this without a slide bar plugin just with single images per page?

    Cheers!!

Viewing 10 replies - 1 through 10 (of 10 total)
  • I have a similar need. I’d like the header to be more compact on every page besides the home page. It’s taking up too much real estate on pages where users need to get right to the content.

    Is there a way to change the header image, page-per-page? (I really only need the homepage to be different from the rest… The bigger header image is fine there.)

    Here’s my site.

    Hello Guys,

    ich have a similiar need too. I would like to set a custom header image for each page. It is possible to change the header.php in the editor, shure. But I don’t know in which way especially, i’m not the greatest coder ??

    Many thanks!
    Chris

    I just moved to .org from .com. On the Hemingway theme in the .com site if you set the featured image for a page it will display that as the header image. I haven’t figured out how to make that happen on the “self-hosted” site yet.

    Theme Author Anders Norén

    (@anlino)

    Hi everyone,

    Hemingway Rewritten is a different theme developed and maintained by Automattic, so it has some functionality lacking in the www.remarpro.com version (Hemingway) and vice-versa. There’s no built-in functionality for setting page-specific header images, and I currently don’t have any plans to add it.

    It’s possible to add the functionality by creating a child theme and rebuilding a couple of the theme files, but it takes some doing.

    — Anders

    Hello all
    Can anyone tell me how to change the height of the header picture? The demo version is deeper than the standard one supplied. We have tried uploading a bigger image but it keep asking us to crop the image to 1280 x 416 pixels

    Any help would be very appreciated

    Thanks Steve

    In a child theme, add this to the style.css file

    .header.section { padding: 10px 0; }

    and change the padding to whatever suits you.

    Thank you for your help ??

    Hello there,

    Need help I have a website called https://www.prenatalandbeyond.com and i tried going into the header php to be able to add some code i found earlier entitled banner so that i could change my header image on different pages, but i happen to mess up my website as now my teal background has disappeared and the white area of my page fills your entire screen. I need help to fix this please. Not very good yet with html code. Thanks

    If someone could take a look and possibly fix this for me that would be great. Thanks

    In other words i would like my teal background back and the writing that seems to appear on my homepage which is code, and then i would like to be able to add different header images on different pages. Thanks for your help.

    Hi Anders and everyone,

    I’m working on a child theme of the original Hemingway theme, and trying to achieve the different header images on different pages (discussed above) by using if/elseif clauses in the background call of header.php. The php conditions are working, but I can’t get the alternative image URL to load – it just comes back black on the Contacts page. This is what I’ve done:

    <div class=”header section” style=”background-image: url(<?php if
    (is_page(‘Contact & Find Us’)) : (‘https://watermark81.co.uk/wp-content/uploads/2015/01/cropped-aboutlagback.jpg&#8217;);
    elseif (get_header_image() != ”) : header_image();
    else : echo get_template_directory_uri() . ‘/images/header.jpg’;
    endif; ?>);”>

    I’m probably making a daft mistake (pretty new to this), but I can’t see it – any ideas?

    This feature is key, so if you had other ideas about this function, I’m happy to do the leg work if you can point me in the right general direction.

    Thanks – great theme!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Change the header image per page’ is closed to new replies.