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

User Colours Per Theme

Discussion in 'XenForo Pre-Sales Questions' started by Drae, Jul 17, 2012.

  1. Drae

    Drae Active Member

    I'm guessing this can be done per the CSS for each theme/skin, but want to ask first because my members love their colourings XD I know we can add coding to the member group looks, but can we do it per theme/skin?
  2. Anthony Parsons

    Anthony Parsons Well-Known Member

    There are several styles available with user changeable colours, backgrounds, etc... so yes, it can be done.

    The xenstyles framework, as an example, encompasses a user colour block. http://xenstyles.com

    Audentio have taken some skins a step further, like Class which has user changeable backgrounds and colours. http://www.audentio.com/shop/view/XenForo/class-12

    There isn't much that can't be done.
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    It's pretty simple.

    First specify a markup for the group:

    Admin CP -> Users -> List User Groups -> [click a group] -> User Name CSS

    Even though you are specifying colors per style, you still must specify a "default" color in the group itself to "turn on" the markup. For example:

    color: red;
    Now you can override this color by adding CSS to your styles:

    Admin CP -> Appearance -> Templates -> EXTRA.css

    Add this code to override the color (or any other CSS attribute) for a specific group:

    .username .style3
    	color: green;
    3 is the user_group_id.
    lasertits and Drae like this.
  4. Drae

    Drae Active Member

    Brilliant! Thanks guys!

Share This Page