1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 How Can I Change The Username 'Hover' Colour?

Discussion in 'Styling and Customization Questions' started by UKD, Oct 11, 2013.

  1. UKD

    UKD Active Member

    All usernames are currently set to red and I can't for the life of me figure out the setting for changing it to a more suitable colour for my forum theme.

    Here is the name without moving the mouse cursor over the name:
    [​IMG]

    Here is the name when I hover my mouse cursor over it:
    [​IMG]

    Can anyone help me out? Thanks.
     
  2. mistypants

    mistypants Well-Known Member

    Code:
    .messageUserBlock a.username:hover { color: #000 !important; }
    Change #000 to whatever you'd like.
     
    Amaury likes this.
  3. UKD

    UKD Active Member

    Thank you very much, it worked! :D.

    I was about to ask how to differentiate between regular members and custom colours for staff however the code only appears to be working on the standard members, which is exactly what I wanted :D. I'm not sure I understand why it isn't working on staff/other usergroups however I am happy with the outcome. thanks very much! :).
     
  4. mistypants

    mistypants Well-Known Member

    Usergroups (so therefore, staff members) have a unique class, often one that specifies their color, which overrides the default username link styling. But no problem.
     
    Amaury likes this.

Share This Page