• Resolved sacredthree

    (@sacredthree)


    I’m trying to replace the title of my blog with an image that contains the title.

    The code in my header is as follows:

    <div id=”header”>
    <h1>/”><?php bloginfo(‘name’); ?></h1>
    <div class=”description”><?php bloginfo(‘description’); ?></div>
    </div>

    I haven’t found much help from search results, so I hope someone will be able to help me! Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Heres how I’d do it:

    <div id="header">
    <h1><img src="yourheaderimage.jpg" alt="<?php bloginfo('name'); ?>" /></h1>
    <div class="description"><?php bloginfo('description'); ?></div>
    </div>

    That way, you get your blog title in the alt text, which seems to be the right seo move, but you get the header image instead of text.

    Thread Starter sacredthree

    (@sacredthree)

    Okay, that worked. Awesome! But now I have a different problem. I seem to have tons of white space in my header, which is displacing my logo (site is at http://www.ohtheprofanity.com). I don’t see anything in the stylesheet or header file that is putting in this space. I am using the Daydream theme, located here: http://jway.com.cn/jblog/memos/2008/wordpress-theme-daydream-20/

    The only thing I can think of that is causing this is that I took out the head.gif image that’s at the top of the original theme…but why? I don’t think that’s it.

    Anybody have any ideas? I’d appreciate your help.

    Thread Starter sacredthree

    (@sacredthree)

    Nevermind. Got it!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Using an image for the title’ is closed to new replies.