Центр поддержки uSocial

uCoz: Размещение нескольких кнопок «Поделиться» или «Мне нравится» на странице

Last modified:

Multiple Share buttons allow your website visitors to share your posts without going to the post page. To do this, place Share buttons into the "Appearance of entries" template to make them look like this:

Image 110

Here are the steps you need to take:

  • Upgrade to the PRO plan
  • Create a Share button set
  • Place the set code on your website

Create a Share Button Set

Create a new Share button set:

Image 111

In the settings, scroll down to "Don’t share this page" and check "Use the URL which is different from the page’s one":

Image 112

In the field that will appear, specify the website domain name and the template variable that takes to the post page: http://example.com$ENTRY_URL$ or https://example.com$ENTRY_URL$. This value will be added into the data-url attribute:


If needed, you can change the value of this attribute in the template. That’s why you don't need to create an individual set for a forum. Just change the value of the data-url attribute to $THREAD_URL$ in the generated code:


In the mobile settings, you can also disable mobile version:

Image 113

Now save the set and copy the received code:

Image 114

How Do I Place the Set Code on My Website

Open the Control Panel of the website and go to Design -> Design management (templates). On the page that will open, choose the "Appearance of entries" template of the module you want to add the Share buttons to. For example, "Ad Board":

Image 115

Paste the code you have received (1) and click "Save"(2):

Image 70

The installation is complete!

Is this article helpful for you?