XF 1.5 Replacing Follow link with a FontAwesome icon?

Satix

Member
Hi.

How would I go about replacing the follow link with a FontAwesome icon?

It looks like it's called through a <xen:follow> and not an actual link. Any way to do this?
 
Is there a xen:link option for follows that I'm missing?

My site URL is lakevalor.net; though, I don't see it as necessary in this case since it's a general xenForo question.
 
Sorry, don't know about XF 1.5, but in XF 2 you can adjust the Follow button in template member_macros:
Code:
<xf:if is="$xf.visitor.canFollowUser($user)">
                <xf:button href="{{ link('members/follow', $user) }}"
                    class="button--link"
                    data-xf-click="switch"
                    data-sk-follow="{{ phrase('follow') }}"
                    data-sk-unfollow="{{ phrase('unfollow') }}">
                    {{ $xf.visitor.isFollowing($user) ? phrase('unfollow') : phrase('follow') }}
                </xf:button>
            </xf:if>
 
Sorry, don't know about XF 1.5, but in XF 2 you can adjust the Follow button in template member_macros:
Code:
<xf:if is="$xf.visitor.canFollowUser($user)">
                <xf:button href="{{ link('members/follow', $user) }}"
                    class="button--link"
                    data-xf-click="switch"
                    data-sk-follow="{{ phrase('follow') }}"
                    data-sk-unfollow="{{ phrase('unfollow') }}">
                    {{ $xf.visitor.isFollowing($user) ? phrase('unfollow') : phrase('follow') }}
                </xf:button>
            </xf:if>
Thank you! I ended up modifying the phrases themselves. :)
 
Top Bottom