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

XF 1.2 Text before username for some usergroups

Discussion in 'XenForo Questions and Support' started by martyanov12, Oct 11, 2013.

  1. martyanov12

    martyanov12 Member

    Help me please, I need to add prefix for 2 usergroups, example:
    Free account - [sometext]username
    Paid1 account - username
    Paid2 account - [sometext]username
    Is it possible to add prefix with CSS, and how?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You can use

    class:before {
    content: "";
    }


    .class:after {
    content: "";
    }
     
  3. martyanov12

    martyanov12 Member

    Tryed now, but it does not work :( Or what class I need write?
    Code:
    class:before {
    content: "[free]";
    }
     
  4. martyanov12

    martyanov12 Member

    Снимок экрана от 2013-10-11 20:37:34.png

    Is it correct? (of course no, it not works...)
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

    Add to EXTRA.css
    Code:
    .username .style6:before {
    content: "[free]";
    }
    Change style6 to the actual style ID.
     

Share This Page