Where can I change the social networks where I can share a post?

Yurensiy

Member
Community Supporter
Points 8
Solutions 0
I can't find where to edit the list of social networks to share a post.
I need to replace:
  • VK with Telegram
  • IN with Viber
I didn't find it in the settings.


1777714166686.webp
 
I can't find where to edit the list of social networks to share a post.
I need to replace:
  • VK with Telegram
  • IN with Viber
I didn't find it in the settings.


View attachment 286

To do this, you need to edit a little bit of code.
/content/themes/default/templates/__social_share.tpl

And all you need to do is add the share code for the social media platform of your choosing.
 
I did it like this, and it switches to telegram.org
Code:
<a href="https://t.me/share/url?url" class="btn-icon-social" target="_blank">
  {include file='__svg_icons.tpl' icon="vk" width="24px" height="24px"}
</a>
 
Yes, because the t.me domain just redirects to the actual domain

Code:
<a href="https://t.me/share/url?url={$_link}" class="btn-icon-social" target="_blank">
  {include file='__svg_icons.tpl' icon="telegram" width="24px" height="24px"}
</a>

Add this code to __social_share.tpl
And upload the files from the Zip to the correct place.

svg file: /images/svg/telegram.svg
__svg_icons.tpl: \content\themes\default\templates\__svg_icons.tpl


All the information is from this website. https://core.telegram.org/widgets/share
 

Attachments

Code:
{elseif $icon == "viber"}
    {include file='../images/svg/viber.svg'}
Now I've added this code and it's stopped working altogether. Otherwise, the Viber icon won't show up.
 
Code:
{elseif $icon == "viber"}
    {include file='../images/svg/viber.svg'}
Now I've added this code and it's stopped working altogether. Otherwise, the Viber icon won't show up.

You have obviously added your own custom code for Viber, so open up the file in the zip, take out the Telegram code, and add it to your template file.
 
You have obviously added your own custom code for Viber, so open up the file in the zip, take out the Telegram code, and add it to your template file.
I did this, but I still need to add Viber.
And for some reason WhatsApp isn't displayed in the mobile version, although it is in the PC version.🧐
 
I did this, but I still need to add Viber.
Not if you add the Telegram code into your file. It should already have Viber in your file. It's a faster way of doing it.
 
The Viber icon is now showing.

Screenshot 2026-05-02 232646.webp
 
It works!! Thank you very much 🫂 🤝 ! What was the reason?
 

Donate: Campaign

Total amount
$0.00
Goal
$60.00

AdSense

Back
Top