• Hi, I just started a blog and I would like viewers to be able to tell the difference between when I post and when my wife posts. Preferably just with the headline of the post being a different color, or maybe body copy. Either one would be great. Does anyone know how to do this? I know more than an absolute beginner about CSS but not everything, and I know -nothing- about php. Any help would be GREATLY APPRECIATED!!!
    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • <?php the_author_login() ?> will produce the author’s user name, such as “admin.” Why not make a class with the author’s user name as its value?

    <h3 class="<?php the_author_login() ?>"> . . . </h3>

    Then you can apply the different styles to the different user names in your style.css file:

    h3.sue {
    color: red;
    }
    h3.bob {
    color: blue;
    }

    Thread Starter sojourn78

    (@sojourn78)

    This is brilliant. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Users with different styles?’ is closed to new replies.