XF 2.1 Hide share icon

Ozzy47

Well-known member
In post_macros we have this:

HTML:
    <li>
                                <a href="{{ link('threads/post', $thread, {'post_id': $post.post_id}) }}"
                                    data-xf-init="share-tooltip" data-href="{{ link('posts/share', $post) }}"
                                    rel="nofollow">
                                    <xf:fa icon="fa-share-alt"/>
                                </a>
                            </li>

Question I have is how to hide the "fa-share-alt" icon by adding something to extra.less?
 
This will work, but just test it thoroughly. It's sometimes risky using the nth-child selectors but it's the only solution in this case since the list items don't have unique class names.

Less:
.message-attribution-opposite--list li:nth-last-child(3){
    display: none;
}
 
Top Bottom