how to show text instead of icon? - HexagonReborn
how to show text instead of icon?
how to show text instead of icon
-
- Registered User
- Posts: 234
- Joined: Fri Jun 03, 2022 5:35 pm
Re: how to show text instead of icon?
the top one
find and replace
with
the bottom one
find and replace
with
and to hexagon.css add
DONT FORGET TO PURGE THE CACHE IN ACP after making changes
find and replace
Code: Select all
<a href="{{ U_POST_NEW_TOPIC }}" class="button responsivebutton" title="{% if S_IS_LOCKED %}{L_FORUM_LOCKED}{% else %}{L_POST_TOPIC}{% endif %}">
{% if S_IS_LOCKED %}
<i class="icon fa-lock fa-fw" aria-hidden="true"></i>
{% else %}
<i class="icon fa-pencil fa-fw" aria-hidden="true"></i>
{% endif %}
</a>
Code: Select all
<a href="{{ U_POST_NEW_TOPIC }}" class="button button-txt responsivebutton" title="{% if S_IS_LOCKED %}{L_FORUM_LOCKED}{% else %}{L_POST_TOPIC}{% endif %}">
{% if S_IS_LOCKED %}
<span>{L_BUTTON_FORUM_LOCKED}</span>
{% else %}
<span>{L_BUTTON_NEW_TOPIC}</span>
{% endif %}
</a>
find and replace
Code: Select all
<a href="{{ U_POST_NEW_TOPIC }}" class="button" title="{% if S_IS_LOCKED %}{L_FORUM_LOCKED}{% else %}{L_POST_TOPIC}{% endif %}">
{% if S_IS_LOCKED %}
<i class="icon fa-lock fa-fw" aria-hidden="true"></i>
{% else %}
<i class="icon fa-pencil fa-fw" aria-hidden="true"></i>
{% endif %}
</a>
Code: Select all
<a href="{{ U_POST_NEW_TOPIC }}" class="button button-txt" title="{% if S_IS_LOCKED %}{L_FORUM_LOCKED}{% else %}{L_POST_TOPIC}{% endif %}">
{% if S_IS_LOCKED %}
<span>{L_BUTTON_FORUM_LOCKED}</span>
{% else %}
<span>{L_BUTTON_NEW_TOPIC}</span>
{% endif %}
</a>
Code: Select all
.button-txt {
position: relative;
top: -2px;
left: -8px;
max-width: 35px;
display: block;
white-space: break-spaces;
font-size: 10px;
line-height: 1;
}
-
- Registered User
- Posts: 2135
- Joined: Sun Oct 25, 2015 2:56 pm
- Name: Matt
-
- Registered User
- Posts: 234
- Joined: Fri Jun 03, 2022 5:35 pm
Re: how to show text instead of icon?
you didn't make correct edit notice there is a new class on the
a
tag called button-txt
also in css change .button-txt
to .button-txt span
-
- Registered User
- Posts: 2135
- Joined: Sun Oct 25, 2015 2:56 pm
- Name: Matt
Re: how to show text instead of icon?
i did every thing what you said. but not workingMannix_ wrote:you didn't make correct edit notice there is a new class on thea
tag calledbutton-txt
also in css change.button-txt
to.button-txt span
-
- Registered User
- Posts: 234
- Joined: Fri Jun 03, 2022 5:35 pm
Re: how to show text instead of icon?
this one to?viper69 wrote:
i did every thing what you said. but not working
in css change.button-txt
to.button-txt span
-
- Registered User
- Posts: 2135
- Joined: Sun Oct 25, 2015 2:56 pm
- Name: Matt
Re: how to show text instead of icon?
Mannix_ wrote:only in css?viper69 wrote:
in html too?
do i have to change thier?
-
- Registered User
- Posts: 234
- Joined: Fri Jun 03, 2022 5:35 pm
Re: how to show text instead of icon?
in css
means just in css-
- Registered User
- Posts: 2135
- Joined: Sun Oct 25, 2015 2:56 pm
- Name: Matt
Re: how to show text instead of icon?
and mobile device its not fit
-
- Registered User
- Posts: 234
- Joined: Fri Jun 03, 2022 5:35 pm
Re: how to show text instead of icon?
add in css after
not sure about mobile it should fit. it does on my mobile device
line-height: 1;
on new line color: #e9ebee;
not sure about mobile it should fit. it does on my mobile device
-
- Registered User
- Posts: 2135
- Joined: Sun Oct 25, 2015 2:56 pm
- Name: Matt
Re: how to show text instead of icon?
wait i got it add this too to css
Code: Select all
.button-txt.responsivebutton span {
top: 6px;
font-size: 12px;
left: 0;
}
-
- Registered User
- Posts: 2135
- Joined: Sun Oct 25, 2015 2:56 pm
- Name: Matt
Re: how to show text instead of icon?
is this necessary?Mannix_ wrote:wait i got it add this too to css
Code: Select all
.button-txt.responsivebutton span { top: 6px; font-size: 12px; left: 0; }
-
- Registered User
- Posts: 234
- Joined: Fri Jun 03, 2022 5:35 pm
Re: how to show text instead of icon?
do you want the button to look good on mobile devices??viper69 wrote:
is this necessary?
-
- Registered User
- Posts: 2135
- Joined: Sun Oct 25, 2015 2:56 pm
- Name: Matt
Re: how to show text instead of icon?
when add this its messed up with the top oneMannix_ wrote:do you want the button to look good on mobile devices??viper69 wrote:
is this necessary?
-
- Registered User
- Posts: 234
- Joined: Fri Jun 03, 2022 5:35 pm
Re: how to show text instead of icon?
then why didn't you say so in your previous post instead of asking silly questionviper69 wrote: when add this its messed up with the top one
change
Code: Select all
.button-txt.responsivebutton span {
top: 6px;
font-size: 12px;
left: 0;
}
Code: Select all
@media (max-width: 700px) {
.button-txt.responsivebutton span {
top: 6px;
font-size: 12px;
left: 0;
}
}
-
- Registered User
- Posts: 2135
- Joined: Sun Oct 25, 2015 2:56 pm
- Name: Matt