WordPress.org

Ready to get started?Download WordPress

Forums

Insert logo graphic in header? (5 posts)

  1. DenkoB
    Member
    Posted 7 years ago #

    I know this has been covered to death in these forums, but despite researching the topic and going through a lot of trial and error, I haven't been able to find anything that works for me. I'm trying to put a logo in my header file. The logo is at http://findingthewhitespace.com/wp-content/themes/quadruple-blue/images/newlogo.gif
    and I can't get it to show up. The relevant portion of my header.php file is below.

    <body>
    <div id="container">
    <div id="page">
    <div id="header"><h1>" title="<?php bloginfo('name'); ?> <?php _e('home page'); ?>"><?php bloginfo('name'); ?></h1></div>

    Any ideas? Thanks very much.

    Dan

  2. DenkoB
    Member
    Posted 7 years ago #

    Sorry, that code didn't show up too well. Let's see if this looks better. You can always look at the source code on findingthewhitespace.com.

    <body>
    <div id="container">
    <div id="page">

    <div id="header"><h1>" title="<?php bloginfo('name'); ?> <?php _e('home page'); ?>"><?php bloginfo('name'); ?></h1></div>

    <?php get_sidebar(); ?>

  3. Samuel B
    moderator
    Posted 7 years ago #

    Like this:

    <div id="header">
    <div id="headerimg">
    <h1>" title="<?php bloginfo('name'); ?> <?php _e('home page'); ?>"><?php bloginfo('name'); ?></h1></div>

    Define in stylesheet (example only - you need your values):

    #header {
    	background: #73a0c5 url('images/newlogo.gif') no-repeat bottom center;
    	}
    
    #headerimg 	{
    	margin: 7px 9px 0;
    	height: 92px;
    	width: 140px;
    	}
  4. DenkoB
    Member
    Posted 7 years ago #

    I ruv you, Samboll.

    You just taught me how header.php relates to style.css. Powerful!

  5. RipRapRob
    Member
    Posted 6 years ago #

    I have the same problem and I'll try this soloution, but isn't there a </DIV> missig somewhere (the <div id="headerimg"> should have an end tag, no)?

    Should it be right after <div id="headerimg"> like this:

    <div id="headerimg"></div>

    /Rob

Topic Closed

This topic has been closed to new replies.

About this Topic