title
attributes to the <i>
tag of your phrases.I forgot to mention, I changed the text to font awesome icons using Phrases. I didn't add the font awesome code to the members_view template.You can addtitle="whatever"
attributes to your<xf:fa>
tags.
Wow, I did not know you could do that. Pretty amazing!In this case, you can addtitle
attributes to the<i>
tag of your phrases.
<a href="/index.php?members/oo5-dynasty.1/trophies" class="tabs-tab" id="trophies" role="tab"><i class="fas fa-award"></i></a>
Thank you for taking the time to help me also means aTon!In this case, you can addtitle
attributes to the<i>
tag of your phrases.
Generally, yeah. Though per your specific example, there is no trophies tab by default so it depends where that comes from.I do have another question, How would I go about adding this into a template. Would I be editing the member_view template?
<a href="{{ link('members', $user) }}"
class="tabs-tab is-active"
role="tab"
aria-controls="profile-posts">{{ phrase('profile_posts') }}</a>
<xf:fa>
tag instead of using <i>
directly. For example, something like:<a href="{{ link('members', $user) }}"
class="tabs-tab is-active"
role="tab"
aria-controls="profile-posts"><xf:fa icon="fa-comments" title="{{ phrase('profile_posts')|for_attr }}" /></a>
ahhhhhhhhhhhhh I see I see. Thank you for this!Generally, yeah. Though per your specific example, there is no trophies tab by default so it depends where that comes from.
For profile posts, the tab link looks like this:
HTML:<a href="{{ link('members', $user) }}" class="tabs-tab is-active" role="tab" aria-controls="profile-posts">{{ phrase('profile_posts') }}</a>
In templates, you should use the<xf:fa>
tag instead of using<i>
directly. For example, something like:
HTML:<a href="{{ link('members', $user) }}" class="tabs-tab is-active" role="tab" aria-controls="profile-posts"><xf:fa icon="fa-comments" title="{{ phrase('profile_posts')|for_attr }}" /></a>
We use essential cookies to make this site work, and optional cookies to enhance your experience.