[cXF] Icons for Login and Register buttons

[cXF] Icons for Login and Register buttons

BassMan

Well-known member
BassMan submitted a new resource:

Icons for Login and Register buttons - ... with Font Awesome

Check Free and Premium cXF DIY Customizations on customizexf.com

View attachment 165164

Add code to your extra.less template:
CSS:
/* Icons for Login and Register buttons */
.p-navgroup-link.p-navgroup-link--textual.p-navgroup-link--logIn:before {
    font-family: FontAwesome;
    content: "\f090";
    color: #E6BB5C;
    padding-right: 5px;
}...

Read more about this resource...
 
Perfect, but on mobile i dont see the icon. I use XF 2.2.13
Any help?
Thank you! :)
 

Attachments

  • Screenshot_20231205_233400.webp
    Screenshot_20231205_233400.webp
    14.4 KB · Views: 11
Hello,

You have copied the wrong code. Please copy the code for XF 2.2.

I'll paste it here too:
Less:
/* Icons for Login and Register buttons */
.p-navgroup-link.p-navgroup-link--textual.p-navgroup-link--logIn:before {
    .m-faBase();
    .m-faContent(@fa-var-sign-in, 1em);
    color: #E6BB5C;
}
.p-navgroup-link.p-navgroup-link--textual.p-navgroup-link--register:before {
    .m-faBase();
    .m-faContent(@fa-var-key, 1em);
    color: #E6BB5C;
}
/**********/
 
Hello,

You have copied the wrong code. Please copy the code for XF 2.2.

I'll paste it here too:
Less:
/* Icons for Login and Register buttons */
.p-navgroup-link.p-navgroup-link--textual.p-navgroup-link--logIn:before {
    .m-faBase();
    .m-faContent(@fa-var-sign-in, 1em);
    color: #E6BB5C;
}
.p-navgroup-link.p-navgroup-link--textual.p-navgroup-link--register:before {
    .m-faBase();
    .m-faContent(@fa-var-key, 1em);
    color: #E6BB5C;
}
/**********/
Awww thank you! :)
 
It already adds.
Maybe I misspoke and meant, offCanvas menu.

I have checked any extraless for any conflicts and I am only running on a slightly modified stock style.
And I just do not see it showing up. Works perfectly at all other screen resolutions that do not trigger offCanvas menu.

Lemme dig a bit deeper...
 
Oh, sorry, you mean here:

1712500274920.webp


Add this code to your extra.less template:
Less:
/* Icons for Login and Register buttons */
.p-navgroup-link.p-navgroup-link--textual.p-navgroup-link--logIn:before,
.p-offCanvasRegisterLink [href*="login"]:before {
    .m-faContent(@fa-var-sign-in);
    color: #E6BB5C;
}
.p-navgroup-link.p-navgroup-link--textual.p-navgroup-link--register:before,
.p-offCanvasRegisterLink [href*="register"]:before {
    .m-faContent(@fa-var-key);
    color: #E6BB5C;
}
/**********/



And you'll get this:

1712500690564.webp
 
Appreciate it Bassman.

I am on the XF cloud so I am still on 2.2, so they dont display the FA. I am looking at the difference of code between 2.2 and 2.3 and see some differences.

Sorry to be a pain.
 
Top Bottom