Suggested code change for custom thumbnail size
-
Great plugin!
Could not get custom thumbnail size to work as I wanted it to do, I wanted the images to automatically to be resized to the defined sizes for the thumbnail template.
I solved this by a small code change. In three places (one for each slider template) I changed this row:
echo '<img src="'.$advps_image.'" width="'.$advps_custom_thumb[0]->width.'" height="'.$advps_custom_thumb[0]->height.'" alt="dff"/>';
to
echo '<img src="'.$thmb_image.'" width="'.$advps_custom_thumb[0]->width.'" height="'.$advps_custom_thumb[0]->height.'" alt="dff"/>';
In other words, I changed the image src from
$advps_image
to$thumb_image
.
Some quick tests indicates that this does not break anything else but I am no WP-programmer and I have no knowledge of the choices Mr Ahsan have done in the original code. Use on your own risk. ??Best regards,
Khedron Wilk
- The topic ‘Suggested code change for custom thumbnail size’ is closed to new replies.