WordPress.org

Ready to get started?Download WordPress

Forums

Change Header.php to Include Picture (4 posts)

  1. huyunoadmin
    Member
    Posted 6 years ago #

    <div id="head">
    	<h1><a>/"><strong><?php bloginfo('name'); ?></strong></a></h1>
    	<p><?php bloginfo('description'); ?></p>
    </div>

    ...I'd like to change the automated name from the options page to include an image on my server. I tried using img (images/image name.jpg) but it didn't work.

    Any suggestions? Thanks :)

  2. Sridhar Katakam
    Member
    Posted 6 years ago #

    Edit header.php.

    Replace

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

    with

    <img src="path/to/your/image/header.jpg" width="" height="" alt=""/>

  3. katislurps
    Member
    Posted 6 years ago #

    I just wanted to say , that I had spent hours trying to figure out how to get a gif image into my header in just the right spot, and I tried this, and wala! It worked, I was so happy, thank you : )

  4. cindigo
    Member
    Posted 6 years ago #

    Thanks, this helped me too!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags