WordPress.org

Ready to get started?Download WordPress

Forums

How can I change the color of the author's link only? (10 posts)

  1. heredia21
    Member
    Posted 2 years ago #

    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.

  2. alchymyth
    Forum Moderator
    Posted 2 years ago #

    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/

  3. heredia21
    Member
    Posted 2 years ago #

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

  4. alchymyth
    Forum Moderator
    Posted 2 years ago #

    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.

  5. heredia21
    Member
    Posted 2 years ago #

    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.

  6. heredia21
    Member
    Posted 2 years ago #

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

  7. alchymyth
    Forum Moderator
    Posted 2 years ago #

    added to custom.css of your theme:

    .meta a { color: #979da1; }

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

  8. heredia21
    Member
    Posted 2 years ago #

    Where do i add that? custom.css?

  9. alchymyth
    Forum Moderator
    Posted 2 years ago #

    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'

  10. heredia21
    Member
    Posted 2 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.