Bootstrap Templates Bundle

Sunday, December 20, 2015

How to show Shopify Featured Image in Blog Posts

Put the code, where you want to show featured image in shopify blog / article

<!-- article.image here -->
              {% if article.image %}
                {% assign image_alt = article.title | escape %}
                <p class="grid-item">{{ article | img_url: '1024x1024' | img_tag: image_alt, 'article__image' | link_to: article.url }}</p>
              {% endif %}
              <!-- /article.image here -->

No comments:

Post a Comment

Murphy - Home Maintenance & Repair Service HTML Template

Murphy is a handyman repair service Bootstrap HTML Template. It is ideal for either all-rounders or professional teams to introduce the...