• Hi,

    I have a question. I have a header image that I want to put a banner above it. So I see my heading image and additional the banner on top of my header image. I want my heading image link to my site and the banner to another site, but if just the banner links to a site I would be happy too. 🙂

    <?php if ( get_header_image() ) {?>
    	<a href="www.example.com"><img src="<?php echo get_header_image(); ?>" class="header-img" alt="" /></a>
    	<?php } ?>

    So this is what I have got, but I do not know how to add the second image above my header image, without causing trouble, so it looks different on other resolutions or screens than mine.

    I am looking forward to hear from you. I would really appreciate it if you could help me. 🙂

    King regards,
    Greeneco. 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • You should be able to add something like this right above the “<?php if” you posted above.
    By giving the id you should be able to style it independently of the header image.
    <a href="LINK TO SITE"><img src="LINK TO BANNER IMAGE" id="banner-img" alt="" /></a>

    Thread Starter Greeneco

    (@greeneco)

    Thanks for the answer :-), but my problem is that I do not know how to put it above the header image, I do not now ho to program css or html so that it is above the header image and that it is still looks the same on different resolutions or screens.

    King regards,
    Greeneco

    You would first need to create a child-theme, then copy the header.php filr into the child theme directory.

    Thread Starter Greeneco

    (@greeneco)

    Hi,

    thank you again for your answer, but I do not really get what you mean.
    Should I create a file child_theme.php and copy the header.php into it?

    I am looking forward to hear from you and thank you for your time. 🙂

    King regards,
    Greeneco

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Theme: One-Column]’ is closed to new replies.