1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to add a logo to Slick 1.14 WP theme header ?

Discussion in 'Blogging' started by the dopant, Jan 18, 2012.

  1. the dopant

    the dopant Newbie

    Joined:
    Nov 18, 2009
    Messages:
    37
    Likes Received:
    1
    Hi guys,

    I am trying to add a logo to my site but I dono how to edit the header.php file to do so. I would appreciate it if someone could guide me through the process. I checked google and there were few links which changed header image on other themes, but they went over my head completely.. :confused:
    PHP:
    <div id="header">

        <div id="headerimg">
            <?
            if(is_home()) {
            ?>
                <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
            <?
            } else {
            ?>
                <div id="h1"><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></div>
            <?
            }
            ?>
            <div class="description"><?php bloginfo('description'); ?></div>
        </div>
        
    </div>
    Thanks for ur time.
     
  2. mcc777

    mcc777 Registered Member

    Joined:
    Jul 16, 2011
    Messages:
    51
    Likes Received:
    27
    Location:
    Ohio
    Home Page:
    Try this:

    Code:
    <div id="headerimg">
    		<?
    		if(is_home()) {
    		?>
    			<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?>[COLOR="Yellow"]<img src="URL TO THE LOGO IMAGE HERE" border="0">[/COLOR]</a></h1>
    		<?
    		} else {
    		?>
    			<div id="h1"><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></div>
    		<?
    		}
    		?>
    		<div class="description"><?php bloginfo('description'); ?></div>
    	</div>
        
    </div>
    if you don't want the blog name to show up (but only the logo), delete the code in the above or remove all the data by going to your WP dashboard and under "Settings" >> General clear "Site Title" and "Tag Line" fields then save the changes.
     
    Last edited: Jan 18, 2012
  3. the dopant

    the dopant Newbie

    Joined:
    Nov 18, 2009
    Messages:
    37
    Likes Received:
    1
    When I did this.. my entire site's width widened with my content aligned to the cnter. I am looking to put the logo above the title and site description... thanks mcc777. appreciate it mate