Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
The Honor Empire Posted February 18, 2016 Posted February 18, 2016 I noticed that the gallery widget is using Medium images. Is it possible to force small for the widget?
Adriano Faria Posted February 24, 2016 Posted February 24, 2016 Yes, if the image has the medium image, it uses it: {{if $image->medium_file_name}} <a href='{$image->url()}' title='{lang="view_this_image" sprintf="$image->caption"}' class='ipsThumb ipsThumb_bg ipsThumb_large' style='background-image: url("{file="$image->medium_file_name" extension="gallery_Images"}");'> <img src='{file="$image->medium_file_name" extension="gallery_Images"}' alt=''> </a> {{else}} <a href='{$image->url()}' title='{lang="view_this_image" sprintf="$image->caption"}' class='ipsNoThumb ipsNoThumb_video ipsThumb_bg ipsThumb_large'></a> {{endif}} Template Gallery -> Front -> Widgets -> imageRow.
The Honor Empire Posted February 24, 2016 Author Posted February 24, 2016 Thanks! I changed them to $image->small_file_name and that works.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.