Skip to content

Commit

Permalink
STRF-4056 Add image width & height for carousel images.
Browse files Browse the repository at this point in the history
  • Loading branch information
junedkazi committed Nov 29, 2017
1 parent c6cb3cc commit ad4cfb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/components/carousel.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
<a href="{{url}}">
<div class="heroCarousel-slide {{#if ../theme_settings.homepage_stretch_carousel_images}}heroCarousel-slide--stretch{{/if}}"
style="background-image: url({{image}})">
<img class="heroCarousel-image" data-lazy="{{image}}" alt="{{alt_text}}" title="{{alt_text}}"/>
<img class="heroCarousel-image" data-lazy="{{image}}" alt="{{alt_text}}" title="{{alt_text}}""
{{#if image_width}}width="{{image_width}}"{{/if}} {{#if image_height}}height="{{image_height}}"{{/if}} />
{{#if heading}}
{{> components/carousel-content show_background=true}}
{{else}}
Expand Down

0 comments on commit ad4cfb7

Please sign in to comment.