JS hover effect (post featured image)
I found some java scripts respinsible for such effects (http://www.net-kit.com/10-jquery-caption-plugins/ ) but i have no idea how to install it. Remember it is about post’s featured image, uploaded picture from admin panel, I don’t put it in post in shortcodes or something, i can’t modify it… At least I don’t know how.
I know JS might be difficult for me. But there might be also another solution.
You probably know there is html code which does effect of changing image when mouse goes ovet it. Like this:
<img src="image1.gif" onmouseover="this.src='image2.gif'" onmouseout="this.src='image1.gif'">
But where should I put something like this? And how? I found in home.php some lines
<?php get_the_image( array( 'custom_key' => array( 'thumbnail' ), 'default_size' => 'thumbnail', 'width' => '310', 'height' => '150' ) ); ?> <?php the_excerpt(); ?>
Which I guess are responsible for displaying this Post’s featured image. Adding even simpliest hover effect would be divine for me.
Help me please, I spent few nights trying to deal with it, and still nothing, I’m frustrated…
- The topic ‘JS hover effect (post featured image)’ is closed to new replies.