Add icons to log in and Register option

Sameer Memon
Sameer Memon
1 Min Read
- Advertisement -

Wanna change your default log in and register option of xenforo from this:

login register xenforo

To this:

login register with icon in xenforo

We are going to add icons to the Log in and Register options at the top header of xenforo.

Earlier we learned to add icons to user banners and many more customizations for xenforo.

Let’s start!

Go to your ACP->Appearance->Templates and search for extra.less

- Advertisement -

Click to Edit the template.

Now add the following code to the template:

// Login icon
.p-navgroup-link.p-navgroup-link--textual.p-navgroup-link--logIn:before {
    font-family: 'Font Awesome 5 Pro';
    font-size: inherit;
    font-style: normal;
    font-weight: 400;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\f090";
    width: 1em;
    display: inline-block;
    text-align: center;
    color: #53D81A;
}
// Register icon
.p-navgroup-link.p-navgroup-link--textual.p-navgroup-link--register:before {
    font-family: 'Font Awesome 5 Pro';
    font-size: inherit;
    font-style: normal;
    font-weight: 400;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\f234";
    width: 1em;
    display: inline-block;
    text-align: center;
    color: #F10DE0;
}
adding icons to login and register option in xenforo

You can change your icons and colors as per your choices. You can find icons here

Click Save when done.

All done! Check your new look by opening your forum in guest mode or incognito mode.

- 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.