Help ;)

CafeTostao ☕

Active member
Registered
Joined
Apr 13, 2020
Messages
40
Points
28

Reputation:

Hey guys!

Does anyone know what is the template where are the "New post" and "Post thread" buttons? I want to change the icon for those buttons, but I don't know what the template is, I have searched all of them and can't find it xd
 

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
28,425
Points
823

Reputation:

core_button.less -> Find this and change it
Code:
&--convert        { .m-buttonIcon(@fa-var-bolt, .5em); }
Code:
&--write        { .m-buttonIcon(@fa-var-edit, 1em); }
 

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
28,425
Points
823

Reputation:

Change it to your preferred icon ex: fa-var-home
 

CafeTostao ☕

Active member
Registered
Joined
Apr 13, 2020
Messages
40
Points
28

Reputation:

Okay.
I understand xd, but can't I put a fontawesome icon?
for example
<i class = "fas fa-home"> </i>
 

sucre13

Moderator
Staff member
Moderator
Collaborate
Registered
Joined
Jan 19, 2019
Messages
859
Points
153

Reputation:

for xenforo 2.1
{ font-family: 'Font Awesome 5 Pro';
 

CafeTostao ☕

Active member
Registered
Joined
Apr 13, 2020
Messages
40
Points
28

Reputation:

I understand this, I think you do not understand what I mean.
What I want to get to is the following.

icons.PNG


I want to change these icons, for some icons that are not from the forum, I want to put other icons totally unrelated to this one.
They have given me a solution, it is the following, enter the core_button.less template and change this code

& - convert {.m-buttonIcon (@ fa-var-bolt, .5em); }
& - write {.m-buttonIcon (@ fa-var-edit, 1em); }

That is, I know, but I can change them to icons exclusively from the forum, for example fa-var-home, but I DO NOT WANT these icons, I want to be able to put other icons that are not these, and when I said that I wanted to put Fontawesome icons I was referring to be able to put any icon
 

Loki

Moderator
Staff member
Moderator
S.V.I.P Member
Collaborate
Registered
Joined
Dec 31, 2019
Messages
480
Points
253

Reputation:

hello, if you use a template change it also in the default

Screenshot_1.png


Screenshot_3.png


Screenshot_2.png
 
Last edited:

thomsa

Moderator
Staff member
Moderator
S.V.I.P Member
Collaborate
Registered
Joined
Jun 22, 2019
Messages
1,169
Points
173

Reputation:

not good for edit this core_button.less
to add css to extra.less to good.
 

Loki

Moderator
Staff member
Moderator
S.V.I.P Member
Collaborate
Registered
Joined
Dec 31, 2019
Messages
480
Points
253

Reputation:

@CafeTostao ☕

Ok, in template forum_overview_wrapper:

FIND:

Screenshot_4.png


ADD BELOW:

Code:
    <xf:button href="#" icon="redirect">
        {{ phrase('New Link...') }}
    </xf:button>





12.png
 
Top