Using the second thumbnail as an imagehover
-
Hi,
I was wondering if there’s a way to use the secondary ‘featured’ uploaded image (thanks to this plugin) as a hover for the first (and original) featured image.
I did find a way to create and choose a single hover image in the themes layout-objects.php-file but I need a <img scr=””> string to be able to ‘call’ the secondary image. Right now, the only thing I’m able to do is setting up a stock image (with text or color) and use that as a hover-image for each and every first featured image.
I need a page with a couple of black and white faces of people. The images used for these faces are the Featured Images, used in articles (posts). When you move over the images with your mouse, these images has to fade into the colored (secondary Featured) images.
The string to call the first (original) featured image looks like this:
echo '<img src="'. $upload_dir['baseurl'] . '/' . $upload_folder . '/' . $custom['sizes']['portfolio-featured-thumb-460']['file'] . '" width="100%"/>';
Does anyone have an idea?
Thanks!
https://www.ads-software.com/plugins/multiple-post-thumbnails/
- The topic ‘Using the second thumbnail as an imagehover’ is closed to new replies.