Add color animation in xenforo usernames

Sameer Memon
Sameer Memon
2 Min Read
- Advertisement -

Who doesn’t likes fancy username effects? I guess everyone out there would love their name to shine in their forum. Especially a rainbow color effect like this

css username effect in xenforo

This can be made using CSS.

For this head over to your xenforo admin panel and go to Group and permissions.

Select the group for which you want this effect.

Now you can see an option for “Username CSS”, add the below code inside it and click save.

username css in xenforo
color: transparent;
background: url(https://i.pinimg.com/originals/e5/89/95/e5899572ecace2b0895b36db7703a001.gif
);
text-stroke: .6px;
-webkit-background-clip: text; font-weight: bold;

Now go back to your xenforo forum and refresh the page to see the effect.

- Advertisement -

For above code you will see the rainbow effect in your username (not the crown icon).

For icon you need to add few codes in your extra.less template.

Find your favorite icon here : Font Awesome 5 Pro

Go to Appearance > Templates > find “extra.less” template and add below code.

icon in username in xenforo
/* Admin Group settings Font Awesome */
.username--style3:before {
font-family: "Font Awesome 5 Pro";
content: "\f521";
color: inherit;
padding-right: 4px;
display: inline-block;
}

Note: replace .username–style3 with your style class. You can find your class name by right-clicking the username field and clicking inspect.

Replace \f521 with the Unicode of your favorite icon.

Find your favorite icon here: Font Awesome 5 Pro

username class
finding username class

As in my case its .username–style3 so I will use same in the code above.

Click save or “save and exit”.

- Advertisement -

Go back to your forum and refresh the page. You should see the effect and icon there.

Now similarly you can add effects to various other user groups.

For more customization tips, check the other posts under Xenforo Customization.

If you find any diffuculty to make this work, comment down without hesitation.

- Advertisement -
Follow:
Sameer Memon is a passionate writer with 3 years of experience in Blogging. With a strong background in Blogs, SEO, and Social Media Marketing, Sameer has been creating engaging content on various topics for a wide range of clients. As a dedicated and driven individual, Sameer takes pride in delivering well-researched and thoughtfully written articles that provide readers with valuable insights and information. He is constantly striving to stay up-to-date with the latest industry trends and techniques to produce content that is not only informative but also engaging and easy to read. When Sameer isn't busy writing, he enjoys gaming. He also loves to explore new places to gain fresh perspectives and inspiration for his writing. If you're interested in learning more about Sameer and his work, you can follow him on social media platform at give handles.