Support » Themes and Templates » User Icons

  • Hi !
    I believe i’m in the good section for my query.
    We are two authors on my blog and I’d like to add a specific Icon on the right side of the post in order to visually identify faster yhe author. I’ve been looking around support and haven’t found anything on this.
    Any clue ?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Googling “ image for author” gave these results.

    I set something like this up once:
    I’d give you code, but the template for the index.php seems to be giving me the default code…

    Alright, here we go:
    <img class="autimg" src="authors/<?php the_author() ?>.gif">
    Just set up a folder called authors (or change it how you like) and put gif files there (or images of another format, just don’t forget to change the img tag) with the names of the author(s). Of course, you need to set up your stylesheets and such to your preference, but that should be no problem.

    Thanks i’ll give it a try straight away 😉

    Im new to php:

    where would you put that piece of code if u want it to post in the post’s title (where the date is etc)?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘User Icons’ is closed to new replies.