title: Shopify liquid template: repeat HTML code only once
body: <p>I could successfully add a second hard coded <code>store address</code> in my Shopify template. Now, I'm attempting to add a second <code>address</code>.</p>
  
  <p>The challenge I'm facing is this hard coded address is getting repeated because of a <code>for</code> loop which binds the value from the <code>settings.json</code> file.</p>
  
  <p>The hard coded address is getting repeated three times, since it is being considered by the for loop. But the <code>for</code> loop cannot be removed, because it binds the first address, contact, and visiting hours.</p>
  
  <p>I've tried using an <code>if</code> block with with my hard code, but it didn't work out.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;div class="container main content main-wrapper"&gt;
    {% if section.settings.image == nil %}
      &lt;h1 class="center"&gt;{{ page.title }}&lt;/h1&gt;
      &lt;div class="feature_divider"&gt;&lt;/div&gt;
    {% endif %}
  
    &lt;div class="sixteen columns featured_links"&gt;
      &lt;div class="section clearfix feature"&gt;
        {% for block in section.blocks %}
          &lt;div class="{% if section.settings.featured_promos_per_row == 2 %}eight columns {% cycle 'alpha', 'omega' %}{% elsif section.settings.featured_promos_per_row == 3 %}one-third column {% cycle 'alpha', '', 'omega' %}{% else %}four columns {% cycle 'alpha', '', '', 'omega' %}{% endif %} {% if section.settings.featured_links_style != blank %}{{ section.settings.featured_links_style }} {% cycle 'delay-025s', 'delay-05s', 'delay-075s', 'delay-1s' %}{% endif %} center"&gt;
            {% if block.settings.link != blank %}
              &lt;a href="{{ block.settings.link }}"&gt;
            {% endif %}
  
            &lt;div class="{% if section.settings.rounded_image != blank %}rounded{% endif %}"&gt;
              {% if block.settings.image != nil %}
                &lt;img  src="{{ block.settings.image | img_url: '300x' }}"
                      alt="{{ block.settings.image.alt }}"
                      data-src="{{ block.settings.image | img_url: '2048x' }}"
                      class="lazyload"
                      {% comment %} data-sizes="auto" {% endcomment %}
                      data-srcset=" {{ block.settings.image | img_url: '2048x' }} 2048w,
                                    {{ block.settings.image | img_url: '1600x' }} 1600w,
                                    {{ block.settings.image | img_url: '1200x' }} 1200w,
                                    {{ block.settings.image | img_url: '1000x' }} 1000w,
                                    {{ block.settings.image | img_url: '800x' }} 800w,
                                    {{ block.settings.image | img_url: '600x' }} 600w,
                                    {{ block.settings.image | img_url: '400x' }} 400w"
                       /&gt;
              {% else %}
                {% capture i %}{% cycle "1", "2", "3", "4", "5", "6" %}{% endcapture %}
                {{ 'collection-' | append: i | placeholder_svg_tag: 'placeholder-svg placeholder-svg--promotions' }}
              {% endif %}
            &lt;/div&gt;
  
            {% if block.settings.title != blank %}
              &lt;h3&gt;{{ block.settings.title | escape }}&lt;/h3&gt;
              {% if section.settings.show_divider %}
                &lt;div class="feature_divider"&gt;&lt;/div&gt;
              {% endif %}
            {% endif %}
            {% if block.settings.link != blank %}
              &lt;/a&gt;
            {% endif %}
  
            {% if block.settings.text != blank %}
              {{ block.settings.text }}
            {% endif %}
  
          {% if section.blocks===1%}
          &lt;div class="store-new"&gt;
            &lt;br&gt;&lt;p&gt;XYZ&lt;/p&gt;&lt;p&gt;XYZ,&lt;br&gt;XYZ&lt;br&gt;XYZ&lt;/p&gt;
          &lt;/div&gt;
           {% endif %}        
  
          &lt;/div&gt;
  
          {% if section.settings.featured_promos_per_row == 2 %}
            {% cycle '', '&lt;br class="clear " /&gt;' %}
          {% elsif section.settings.featured_promos_per_row == 3 %}
            {% cycle '', '', '&lt;br class="clear" /&gt;' %}
          {% else %}
            {% cycle '', '', '', '&lt;br class="clear" /&gt;' %}
          {% endif %}
        {% endfor %}
      &lt;/div&gt;
  
      {% if section.settings.contact_address != blank %}
      &lt;br class="clear" /&gt;
      &lt;div class="embed-container maps"&gt;
          &lt;iframe width="100%" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&amp;amp;source=embed&amp;amp;hl=en&amp;amp;geocode=&amp;amp;q={{ section.settings.contact_address | replace: ' ', '+' }}&amp;amp;z={{ section.settings.zoom_level }}&amp;amp;output=embed"&gt;&lt;/iframe&gt;
      &lt;/div&gt;
      {% endif %}
    &lt;/div&gt;
  
  
  &lt;/div&gt;
  </code></pre>
  
  <p>Can someone please help me understand why is this happening?</p>