Xenforo Enhance Post Sharing with Social Network Brand Icons

Dr.Pavlov

Инквизитор
Admin
Регистрация
11 Июл 2004
Сообщения
9,021
Реакции
2,199
Credits
7,136
Compatible XF 2.x versions 2.2

Want to change your per-post sharing icon to add and highlight all the sharing options you've enabled ( /admin.php?options/groups/sharing/ )?

From ...
screen-shot-2021-02-24-at-11-46-30-png.247118

To ...
screen-shot-2021-02-24-at-11-44-44-png.247117


It's only one simply template edit within your ACP. Steps ...
  • Open your Admin Control Panel, and go to the Appearance | Templates ( /admin.php?templates/ )
  • Make sure your style is selected in the drop down button in the top-left. Select yours, if need be.
  • In the 'Filter...' input box in the top-right, enter "post_macros"
  • Click on the post_macros template to edit it.
screen-shot-2021-02-24-at-11-55-06-png.247119

  • If you don't wish to keep the original generic share icon, you can wrap <xf:comment> around it, as shown in the last line of the above code.
  • Click the 'Save and Exit' button at the bottom.

Here's how the added/replacement code looks within the template editor, for xF v2.2.3 Patch 1 ...
screen-shot-2021-02-24-at-12-08-52-png.247120
 

Похожие темы