WordPress.org

Ready to get started?Download WordPress

Forums

Frantic
Using Logo for header image (3 posts)

  1. Brian
    Member
    Posted 1 year 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?

    Thanks,
    Brian

  2. WPThemes.co.nz
    Member
    Posted 1 year 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:

    http://wp.tutsplus.com/tutorials/theme-development/child-themes-basics-and-creating-child-themes-in-wordpress/
    http://codex.wordpress.org/Child_Themes

  3. Brian
    Member
    Posted 1 year 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