How to change uploaded image name-150×150.jpg to name-thumbnail?
-
I have small thumnail images which I want to enlarge in div near by to mouse when I hover on them. I do this with jQuery::
$(".attachment-thumbnail").hover( function(event) { var url = $(this).attr("src").replace("-150x150", "");; $("div").css( {top:event.pageY, left: event.pageX, 'background-image':'url('+url+')'}).toggle(); });
But the problem is that I get the biggest size of image and it loads slowly.
I cant replace “150×150” with something like “300×225” becouse not all medium size images are sized to this dimensions.Maybe you can help me find the way to do this other way? Or maybe how could I change the wordpress resized images naming from “height x width” to “medium”?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to change uploaded image name-150×150.jpg to name-thumbnail?’ is closed to new replies.