AyeAaron
Member
Posted 2 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
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
AyeAaron
Member
Posted 2 years ago #
Awesome. where do I paste it in relation to the rest of the header code?
It's a change to header.php - not an addition. Please read my suggestion again.
AyeAaron
Member
Posted 2 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() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>
<?php wp_head(); ?>
It's well below that part of header.php