Support » Plugin: Like Button Rating ♥ LikeBtn » Like button in the loop of users

  • Resolved The-Rock

    (@the-rock)


    Hi,

    I have custom plugin which shows a loop of users via shortcode. Each user have hover card. Is it possible to display this like button for each user?

    View post on imgur.com

    Here is the code which shows the hover card and text in it.

    jQuery(".grid-item").each(function(){
            var self = jQuery(this);
            var img = self.find('img');
            var txt = img.attr('title');
            var src = img.attr('src');
    	self.tooltipster({
            content: jQuery('<img src="'+src+'" width="160" height="160" class="user-img" /><div class="user-info">'+txt+'</div>'),
    		interactive: true,
     	});
        });

    I was wondering it’s possible to add an extra variable for like button and then print it in the content?

    https://wordpress.org/plugins/likebtn-like-button/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Like button in the loop of users’ is closed to new replies.