WordPress.org

Support

Support » Themes and Templates » How can I change the color of the author's link only?

How can I change the color of the author's link only?

  • heredia21
    Member

    @heredia21

    I want all the links to stay the same color but I want to change the link color on the home page for authors only. How can I do this?

    Heres a link of what I am talking about – http://tinypic.com/r/28rmp6q/5

    I want authors name to be grey like rest of the info.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Michael
    Forum Moderator

    @alchymyth

    try to use a tool such as Firefox’ add-on Firebug for this kind of problem, to investigate the css selectors of the element in question.

    http://getfirebug.com/

    heredia21
    Member

    @heredia21

    I tried that but it changes all link colors. How can I change only author link color?

    Michael
    Forum Moderator

    @alchymyth

    if the ‘author’ link does not have a unique css selector, or is the only link within a unique css class section, you can’t.

    without a live link to the problem, nobody will be able to comment any further.

    basic formatting help is generally not within the main scope of this WordPress forum.

    heredia21
    Member

    @heredia21

    No way to hardcode that particular link to change color?

    I am using this <?php the_author_posts_link() ?>
    If i ad the <u> tags it does underline. But cant seem to get it to change color.

    heredia21
    Member

    @heredia21

    Here is the link sorry bout that – http://www.blackberryempire.com/

    Michael
    Forum Moderator

    @alchymyth

    added to custom.css of your theme:

    .meta a { color: #979da1; }

    might work without interfering anywhere else on your site (untested)

    heredia21
    Member

    @heredia21

    Where do i add that? custom.css?

    Michael
    Forum Moderator

    @alchymyth

    yes, I just edited my reply – your theme seems to expect custom css in this particular file.

    and do clear the browser cache if you can’t see the effect immediately – ‘CTRL F5’ or ‘reload’

    heredia21
    Member

    @heredia21

    I just tried that on custom.css. Seem to work great! Thanks. Is that only change author links? I noticed others stayed blue. So looks good!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How can I change the color of the author's link only?’ is closed to new replies.