Please help me getting an image in my header (4 posts)

  1. Bartheemskerk
    Posted 6 years ago #


    I want to place my logo in the header of my page http://speakerheadz.com

    But when I go to my theme and open the header.php file in any text software, the file is empty.

    When I watch the header.php in the edit function in the admin of my website it is not empty. But when I copy that code and paste it in the header.php file on my server, it ruins the wholo lay out of my website.

    How can I place a picture in the header?

    Thank you very much

  2. carolineh
    Posted 6 years ago #

    I'm not sure why your header.php file isn't appearing in your text editor but to add an image into your header you need to enter this into style.css

    #header {
    	background: url('images/WHATEVER.gif') no-repeat top left;
            height: ??px;

    make sure your image is in the wordpress images folder, you can change 'left' to 'right' or 'centre', and that you replace ??px, with whatever height your image is, in pixels.

  3. Bartheemskerk
    Posted 6 years ago #

    Thank you! I did it.

    And in what way is it possible to put an Image on top of your blog title. Because my theme uses the blog titel as a header.

    Thank You!

  4. carolineh
    Posted 6 years ago #

    you have to hide your header text cus if you delete it it's mess up with your SEO. So put the following div around your header in header.php, like so:

    <div id="hideheader">
    <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
    		<div class="description"><?php bloginfo('description'); ?></div>

    and add this into your style.css

    #hideheader {

    So you are a band :) I read your favourite bands, cool, shame I can't read the rest of your site!

Topic Closed

This topic has been closed to new replies.

About this Topic