XF 2.3 How can I add icons to the places

Code:
                    <!-- kaynaklar postbit -->
                    <xf:if is="$xf.visitor.canViewResources() AND $user.xfrm_resource_count">
    <dl class="pairs pairs--justified">
        <dt>{{ phrase('xfrm_resources') }}</dt>
        <dd><a href="{{ link('resources/authors', $user) }}" id="resources">{$user.xfrm_resource_count}</a></dd>
    </dl>
</xf:if>
<!-- kaynaklar postbit -->

Where do I add it here?
 
Code:
                    <!-- kaynaklar postbit -->
                    <xf:if is="$xf.visitor.canViewResources() AND $user.xfrm_resource_count">
    <dl class="pairs pairs--justified">
        <dt>{{ phrase('xfrm_resources') }}</dt>
        <dd><a href="{{ link('resources/authors', $user) }}" id="resources">{$user.xfrm_resource_count}</a></dd>
    </dl>
</xf:if>
<!-- kaynaklar postbit -->

Where do I add it here?
You don't add it there.

If you want icons to replace the phrases you indicate in your image, then add the code to the relevant phrases, ie Keynakla and Medya
 
Sir, look, all fields in postbit have icons, only resources and media articles do not have icons, I want to put an icon here like other icons. There is no icon in the places I marked in red
 

Attachments

  • 12.webp
    12.webp
    7.5 KB · Views: 2
Code:
<dt><span data-xf-init="tooltip" data-original-title="Kaynaklar"><i class="fa--xf far fa-thumbs-up "><svg xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true" ><use href="/data/local/icons/regular.svg?v=1731087933#thumbs-up"></use></svg></i></span></dt>

I found the code but I cannot change the icon here. ? far fa-thumbs-up
 
message_macros
this code

Code:
<dt>{{ phrase('xfrm_resources') }}</dt>

I changed it with these codes
Code:
<dt><span data-xf-init="tooltip" data-original-title="Kaynaklar"><i class="fa--xf far fa-trophy-star "><svg xmlns="http://www.w3.org/2000/svg" role="img" aria-hidden="true" ><use href="/data/local/icons/regular.svg?v=1731087933#thumbs-up"></use></svg></i></span></dt>

I can't change the icon here
I want to add this it doesn't appear -fa-regular fa-folder
 
Back
Top Bottom