Jump to content

Gallery widget uses medium images?

Featured Replies

Posted

I noticed that the gallery widget is using Medium images. Is it possible to force small for the widget?

56c6053575c90_2016-02-1812_42_32-TheHono

  • Author

Any ideas? Thanks

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.

  • Author

Thanks! I changed them to $image->small_file_name and that works.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.