• Hi,

    I was interested in putting an image in the description of my blog. I tried a few methods but none seemed to work. I’m sure there is some kind of method to accomplish this though, so I assumed I would ask. Any help is appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • There probably is, but a link to your blog and a link to the image would help hugely. Right now it’s almost impossible to help as we don’t know your template etc.

    Thread Starter blogger_man

    (@blogger_man)

    In your header you have the following php and template tags:

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

    So, add the smile image in the code for the description.

    First decide which directory you will store the image and then modify the description code:

    <div class="description"><?php bloginfo('description'); ?> <img src="blog/images/smile.gif" alt=" " /></div>

    This will only add the image at the end of your description. You’ll have to add html and css rules to do more with it.

    Here’s an overview to reference: http://codex.ww.wp.xz.cn/Using_Images

    Thread Starter blogger_man

    (@blogger_man)

    Alright, thanks for your help. I ended up geting it in there with CSS. I had previously attempted adding it directly to my header.php file, but to no avail. Thanks to both of you for the assistance anyways though, it’s highly appreciated.

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

The topic ‘Image in Description’ is closed to new replies.