Answer the question
In order to leave comments, you need to log in
How to put social media like buttons on home page?
Good day!
1. There is a task: to display a list of news on the main page, and under each annotation of the news, you need to put like buttons vk, facebook, twitter.
2. The same buttons should be at the bottom of the news itself when we read it.
I have dealt with point 2. The identifier for a like is the page id. I use Modx Revo. Here is an example on the VK button
<!-- vk -->
<script type="text/javascript">
VK.init({apiId: 4874657, onlyWidgets: true});
</script>
<div class="vkontakte" id=""></div>
<script type="text/javascript">
VK.Widgets.Like("", {type: "mini"});
</script>
<!-- vk -->
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question