fionix Well-known member Mar 20, 2019 #1 Hello, I want to remove "globally" the Share this post bottom which appear on each post. I put a circle on the attached image so you may better understand what it is I want to remove if possible.
Hello, I want to remove "globally" the Share this post bottom which appear on each post. I put a circle on the attached image so you may better understand what it is I want to remove if possible.
O Old Nick Well-known member Mar 21, 2019 #2 Hello, in post_macros template you can remove this part of code around line 31 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> Upvote 0 Downvote
Hello, in post_macros template you can remove this part of code around line 31 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>
Jordyn Well-known member Mar 21, 2019 #3 Or maybe add this to extra.less Code: .message-attribution-opposite .fa-share-alt { display: none !important; } Upvote 0 Downvote
Or maybe add this to extra.less Code: .message-attribution-opposite .fa-share-alt { display: none !important; }
Jordyn Well-known member Mar 21, 2019 #5 Nikodak said: The best way ! Click to expand... True mate Upvote 0 Downvote
B burakdotto Member Mar 21, 2019 #6 Jordyn said: Or maybe add this to extra.less Code: .message-attribution-opposite .fa-share-alt { display: none !important; } Click to expand... With this, you will still be able to click on the a-tag, because you're only hiding the FontAwesome Icon: I think the best way is to add a class to the li-Tag in post_macros and then display:none with CSS in your extra.less: Last edited: Mar 21, 2019 Upvote 0 Downvote
Jordyn said: Or maybe add this to extra.less Code: .message-attribution-opposite .fa-share-alt { display: none !important; } Click to expand... With this, you will still be able to click on the a-tag, because you're only hiding the FontAwesome Icon: I think the best way is to add a class to the li-Tag in post_macros and then display:none with CSS in your extra.less:
Jordyn Well-known member Mar 21, 2019 #7 Nikodak said: Hello, in post_macros template you can remove this part of code around line 31 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> Click to expand... Damn, i would probably do it this ^^ way then or use Andys addon: https://xenforo.com/community/resources/remove-share-icon.6970/ Upvote 0 Downvote
Nikodak said: Hello, in post_macros template you can remove this part of code around line 31 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> Click to expand... Damn, i would probably do it this ^^ way then or use Andys addon: https://xenforo.com/community/resources/remove-share-icon.6970/
fionix Well-known member Mar 22, 2019 #8 I used Andy's plugin and don't hope it slow down the rest of the forum because of too many ADD on's Thanks for the help. Upvote 0 Downvote
I used Andy's plugin and don't hope it slow down the rest of the forum because of too many ADD on's Thanks for the help.
Marcel Broekema Member May 24, 2019 #9 Also tried Andy's addon, but for some reason it doesn't work on my xf 2.1 forum...weird, already asked Andy for some help on his forum... share button is still visible... Upvote 0 Downvote
Also tried Andy's addon, but for some reason it doesn't work on my xf 2.1 forum...weird, already asked Andy for some help on his forum... share button is still visible...