WordPress.org

Ready to get started?Download WordPress

Forums

Replacing Blog Title with Image in Mini Theme (6 posts)

  1. AyeAaron
    Member
    Posted 4 years ago #

    Hi, I am trying to replace my blog title with an image, but my header doesn't look like some of the other posts I've read.

    Here is my site: http://aarondavis.net/knifelike/

    Here is my header:

    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>

    <?php wp_head(); ?>

    What do I have to change to get this image to replace my blog title?
    http://aarondavis.net/knifelike/wp-content/themes/mini/img/headerimg.png

    Thanks in advance,

    Aaron

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Well, you can get rid of <img src="http://aarondavis.net/knifelike/wp-content/themes/mini/img/headerimg.png"> at the top if header.php for a start. The <head></head> section has nothing to do with your site's header.

    Then try changing:

    <a class="logo" href="<?php bloginfo('url');?>"><?php bloginfo('name');?></a>

    to:

    <a class="logo" href="<?php bloginfo('url');?>"><img src="<?php bloginfo('url');?>wp-content/themes/mini/img/headerimg.png" width="287" height="61" alt="<?php bloginfo('name');?>" /></a>

    in header.php

  3. AyeAaron
    Member
    Posted 4 years ago #

    Awesome. where do I paste it in relation to the rest of the header code?

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    It's a change to header.php - not an addition. Please read my suggestion again.

  5. AyeAaron
    Member
    Posted 4 years ago #

    Ok, thank you, but I do not see:

    <a class="logo" href="<?php bloginfo('url');?>"><?php bloginfo('name');?></a>

    in the header below.

    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    
        <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
        <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
        <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
     <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>
    
        <?php wp_head(); ?>
  6. esmi
    Forum Moderator
    Posted 4 years ago #

    It's well below that part of header.php

Topic Closed

This topic has been closed to new replies.

About this Topic