WordPress.org

Ready to get started?Download WordPress

Forums

Putting an image where the "Blog Title" text goes (8 posts)

  1. hoopang1
    Member
    Posted 4 years ago #

    How would I replace the Blog Title text with a picture logo? It seems like only text can go there, but I'm hoping there's a way to maybe embed an image via html. I've tried but cannot figure this one out. Thanks for your help!

  2. sanjaymenon
    Member
    Posted 4 years ago #

    just replace the piece of code that displays the blog name and description in ur header.php file with this :

    <span>
    <a href="<?php echo get_option('home'); ?>/"><img src="[image url]"  alt="<?php bloginfo('description'); ?>" /></a>
    </span>
  3. hoopang1
    Member
    Posted 4 years ago #

    that file would be in the css? sorry i'm new at this

  4. sanjaymenon
    Member
    Posted 4 years ago #

    no just check for this code in ur header.php file

    <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>

    and replace it with the above piece of code.....

  5. hoopang1
    Member
    Posted 4 years ago #

    ok thank you so much!

  6. hoopang1
    Member
    Posted 4 years ago #

    I'm sorry I've been trying everything i could think of and I still can't figure this out. I found and edited the header.php file and replaced the original code with the new suggested code. The original code looks like what Sanjaymenon said to look for except the code says settings instead of option and did not have a '</h1>' at the end of it.

    I've tried to replace the word option with settings and I put the image url in the "[image url]" space. Can someone please help me out? Thank you so much!

  7. hoopang1
    Member
    Posted 4 years ago #

    Please help if anyone has any idea. When I edit the header.php file and enter a url into the image url space, this comes up at the l=top left-hand corner instead of a picture:

    http://www.hoopangle.com/grizzlies

    This is how it looked before I edited the code:

    http://www.hoopangle.com

    I would like to turn the HoopAngle text into a spot for me to put an image if anyone can help me with this.

  8. alchymyth
    The Sweeper & Moderator
    Posted 4 years ago #

    you were pretty close:
    just delete the [ ] brackets around your image url, and add a height="100" or similar to the img.

    <span>
    		<a href="http://www.hoopangle.com/grizzlies/"><img src="http://www.hoopangle.com/grizzlies/wp-content/uploads/2009/07/DirkNowitzki.jpg"  alt="The Lakers should share their trophy with us" height="100"  /></a>
    		</span>

Topic Closed

This topic has been closed to new replies.

About this Topic