Hi,
I need to install another social buttons script in the posts instead of standart buttons. Here is an example:
<script type=”text/javascript”>(function() {
if (window.pluso)if (typeof window.pluso.start == “function”) return;
if (window.ifpluso==undefined) { window.ifpluso = 1;
var d = document, s = d.createElement(‘script’), g = ‘getElementsByTagName’;
s.type = ‘text/javascript’; s.charset=’UTF-8′; s.async = true;
s.src = (‘https:’ == window.location.protocol ? ‘https’ : ‘http’) + ‘://share.pluso.ru/pluso-like.js’;
var h=d[g](‘body’)[0];
h.appendChild(s);
}})();</script>
<div class=”pluso” data-background=”none;” data-options=”big,square,line,horizontal,counter,sepcounter=1,theme=14″ data-services=”facebook,vkontakte,google,twitter”></div>
How can I do that?
Thanks
Hi,
You have to look into the plugin documentation to see how you can integrate it. Usually the script goes in the header or footer and the div in the template. The theme current buttons code is located here – http://screencast.com/t/imnr0bxIB
Thank you, Emil G.
-
This reply was modified 11 years by
Emil G.
Documentation is very simple: “Copy and place the code in the HTML-coding of your site in the location where you want to place the selected social buttons”.
This is the code:
<script type=”text/javascript”>(function() {
if (window.pluso)if (typeof window.pluso.start == “function”) return;
if (window.ifpluso==undefined) { window.ifpluso = 1;
var d = document, s = d.createElement(‘script’), g = ‘getElementsByTagName’;
s.type = ‘text/javascript’; s.charset=’UTF-8′; s.async = true;
s.src = (‘https:’ == window.location.protocol ? ‘https’ : ‘http’) + ‘://share.pluso.ru/pluso-like.js’;
var h=d[g](‘body’)[0];
h.appendChild(s);
}})();</script>
<div class=”pluso” data-background=”none;” data-options=”big,square,line,horizontal,counter,sepcounter=1,theme=14″ data-services=”facebook,vkontakte,google,twitter”></div>
I repeat my question: where I must place this code?
Hi,
You can add it in the social sharing function here: http://screencast.com/t/FQUIKZJ0PTO
In the screenshot I’ve highlighted the top social sharing function. Below it you can find the bottom function.
Thanks
Hi,
You need to format your code and adjust it for theme’s code. I suggest you get someone to help you with this if you don’t have coding knowledge. You can also find a freelancer on sites like: http://studio.envato.com/
If you don’t like theme’s social system or you want to add another then I suggest you try and use a plugin as we don’t recommend altering theme’s code without knowledge.
Thanks