Using Logo for header image (3 posts)

  1. Brian
    Posted 2 years ago #

    I know there isn't a built in theme option to do so, but is there a way to not use a title at all, like leaving the Site title blank in general settings and inserting a jpg in the header php to use as a logo. I've tried this in the past and I remember it not lining up correctly or messing up IE8.

    Is there a simple way to do that to make sure the logo img would go exactly where the site title is now?


  2. WPThemes.co.nz
    Posted 2 years ago #

    Hi Brian,

    You could try editing the header.php file and looking for the following line:

    <h1 id="logo"><a href="<?php echo home_url(); ?>" rel="nofollow"><?php bloginfo('name'); ?></a></h1>

    Should be somewhere in the bottom third of the file.

    Change it to:

    <h1 id="logo"><a href="<?php echo home_url(); ?>" rel="nofollow"><img src="http://yoursite.com/logo.jpg" alt="Logo"></a></h1>

    NOTE: best practice way is to do your theme modifications via a child theme. This makes it so that any updates to the theme does not overwrite the changes you've made to the theme. Here are a couple resources for making child themes:


  3. Brian
    Posted 2 years ago #

    Thank you so much for your help. I definitely need to work on making a child theme.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic