How to add social icons on hover for every image of the content in wordpress?

1 replies
I want to add social icons for every post images in WordPress. I tried using some css tricks but nothing works for me. I do not want to use any plugin. If you guys know hot to do this, then please help me...
#add #content #css #hover #icons #image #social #social icons #wordpress
  • Profile picture of the author emptee
    Originally Posted by Ramesh8248 View Post

    I want to add social icons for every post images in WordPress. I tried using some css tricks but nothing works for me. I do not want to use any plugin. If you guys know hot to do this, then please help me...
    You could do this using a hidden div with your social icons, then show/move the div whenever the onmouseover event fires for any images.

    In jQuery you'd be doing something like....

    $( "img" )
    .mouseover(function() {
    //do cool stuff here, eg..
    $('.social').offset($(this).offset());
    $('.social').show();
    });

    That should get you started
    {{ DiscussionBoard.errors[9936670].message }}

Trending Topics