_includes/hero-slider.html in kcc-gem-theme-1.44.25 vs _includes/hero-slider.html in kcc-gem-theme-1.45.25

- old
+ new

@@ -4,19 +4,19 @@ {% for slide in page.slides %} {% assign url_first_char = slide.url | slice: 0 %} {% if forloop.first == true %} <div> <a {% if slide.url contains 'https://' or slide.url contains 'http:// %}target="_blank" href="{{ slide.url }}"{% elsif url_first_char == '.' or url_first_char == '/' %}href="{{ slide.url }}"{% else %}href="{{ page.baseurl }}{{ slide.url }}{% endif %}"><img src="{{page.baseurl}}{{slide.image}}" class="img-fluid hero-slider__slider--slide-img {% if slide.white_background %} hero-slider__slide-img--border{% endif %}" alt="{{slide.alt-text}}" /></a> - <div class="hero-slider__slider--heading-container text-center"> + {% if slide.text and slide.text != '' %}<div class="hero-slider__slider--heading-container text-center"> <h3 class="hero-slider__slider--slide-heading">{{slide.text}}</h3> - </div> + </div>{% endif %} </div> {% else %} <div> <a {% if slide.url contains 'https://' or slide.url contains 'http:// %}target="_blank" href="{{ slide.url }}"{% elsif url_first_char == '.' or url_first_char == '/' %}href="{{ slide.url }}"{% else %}href="{{ page.baseurl }}{{ slide.url }}{% endif %}"><img src="assets/img/placeholder.png" data-src="{{page.baseurl}}{{slide.image}}" class="img-fluid hero-slider__slider--slide-img {% if slide.white_background %} hero-slider__slide-img--border{% endif %}" alt="{{slide.alt-text}}" /></a> - <div class="hero-slider__slider--heading-container text-center"> + {% if slide.text and slide.text != '' %}<div class="hero-slider__slider--heading-container text-center"> <h3 class="hero-slider__slider--slide-heading">{{slide.text}}</h3> - </div> + </div>{% endif %} </div> {% endif %} {% endfor %} </div> </div>