• Hello guys,

    I would like to get some support on like buttons. So I have pictures on my site, and everyone of those pictures has to have a like button. I cant find any plugin that can help me with that, so I decided to write in in the code.

    <!DOCTYPE html>
    <html>
    <head>
    <script>
    var clicks = 0;
    function myFunction() {

    clicks += 1;
    document.getElementById(“demo”).innerHTML = clicks;

    }
    </script>
    </head>
    <body>

    <p>Pritisni ovde da lajkujes svoj teren.</p>

    <button onclick=”myFunction()”>Like!</button>

    <p id=”demo”></p>

    </body>
    </html>

    This is the code so far. But…. I can like the image countless times. It has to happen only once. And everytime I refresh the page, those likes are gone. They disappear. Can someone help me with the code?

    Very thanks, regards.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi, @bouzan199

    Please take a look…

    https://ww.wp.xz.cn/plugins/kodex-posts-likes/

    I hope this helps a bit.

    Thanks.

    Thread Starter bouzan199

    (@bouzan199)

    It is working, but when I like one picture, that every picture is liked.
    The site name is basketicaukraju.com Try it, and you will se. So basically how do I make the likes work on seperate picures. One picture has its own likes, then another has its own likes, and so on….

    Regards.

    Thread Starter bouzan199

    (@bouzan199)

    Okey, I figured it out. So….

    [kodex_post_like_buttons postid=”1″] [kodex_post_like_count postid=”1″ format=”html|number”] The first code is like this, on the first picture.

    [kodex_post_like_buttons postid=”2″] [kodex_post_like_count postid=”2″ format=”html|number”] The second code is like this, on the second picture, and they work fine, and individual.

    [kodex_post_like_buttons postid=”3″] [kodex_post_like_count postid=”3″ format=”html|number”] And then the third code is like this, and the like button does not even show. Do you know what is the problem?

    I have tried with the number 4 and 5 and so on….

    Regards,

    Hello @bouzan199

    As you use a commercial theme Betheme and need support, please use their official support channel. We feel they are best equipped to support their products.

    http://forum.muffingroup.com/betheme/

    You are their user, I am sure they will have no problem supporting you there.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘LIKE BUTTON’ is closed to new replies.