S
S
Sergey2020-02-26 14:28:47
JavaScript
Sergey, 2020-02-26 14:28:47

Why doesn't Yandex Share work? And how to synchronize 2 blocks on one page?

There is markup

<div class="ya-share2" data-services="vkontakte,facebook,twitter" data-counter=""></div>


I include scripts at the end of the page
<script src="//yastatic.net/es5-shims/0.0.2/es5-shims.min.js"></script>
<script src="//yastatic.net/share2/share.js"></script>


The following block appears (stylized)
5e56554ad58b9214258600.png

When you click, all the counter is triggered
5e565598a310b644074726.png

But when you refresh the page, everything is zero in the end.
1) Why does this happen? I share both from a locally open project and from a test site.
2) At the bottom of the page there is the same block. How to synchronize both blocks so that the numbers appear both there and there when sharing?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question