Added the block "Share" to the site, using Yandex constructor tech.yandex.ru/share/.

The problem is that the descriptor is placed after the link http://prntscr.com/c3shw3but , and it is necessary that http://prntscr.com/c2blix be put before the link. Is it real? An example of my code:

<div class="ya-share2" data-services="vkontakte" data-size="s" id="vkontakte" data-description="дескрипшен" data-title="тайтл">Поделиться Вконтакте</div> 
  • Unclear. What kind of editor do you have in the screenshots and what does the "share" block have to do with it? Make it clearer, please. And better - give a working example. And correct the link in question. - Ivan Pshenitsyn

1 answer 1

The Yandex script itself determines how best to form a text for reposting. For example, on Twitter, he forms the text using the formula #{page_title} #{url} .

Theoretically, you can:

  • Download the script yastatic.net/share2/share.js
  • Find in it a text formation formula for your website / social network
  • Change it as you want
  • Connect your modified script to the site instead of the Yandex script

But in this case, you will have to ensure that the script is up to date, and update it from time to time by downloading the new version of the script from the Yandex website and making all the same changes to it.