Open new tabs for footer links on minimal theme

Solved
Tourist
5 1 0

Hi, I'm trying to get my footer links e.g delivery info, returns etc that are in my footer to open in a new window when clicked rather than go to the url from the existing window. Please can you let me know the best way to do this on the minimal theme. Thank you

0 Likes

Success.

Shopify Partner
1657 278 347

Hi @Jay_MP 

Follow this:

1. Go to Online Store->Theme->Edit code
2. Section->footer.liquid ->find {% when 'menu' %} and <a> under this and add target="_blank" in <a>.

So it look like bellow:

 {% when 'menu' %}
          <div class="grid__item {{ column_width }}">
            {% unless num_columns == 1 %}
            <h3 class="h4">{{ block.settings.menu_title | escape }}</h3>
            {% endunless %}
            <ul class="site-footer__links{% if num_columns == 1 %} inline-list{% endif %}">
              {% for link in linklists[block.settings.menu].links %}
                <li><a target="_blank" href="{{ link.url }}">{{ link.title }}</a></li>
              {% endfor %}
            </ul>
          </div>

 

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
1 Like
Highlighted
Tourist
5 1 0

 


@Jasoliya wrote:

Hi @Jay_MP 

Follow this:

1. Go to Online Store->Theme->Edit code
2. Section->footer.liquid ->find {% when 'menu' %} and <a> under this and add target="_blank" in <a>.

So it look like bellow:

 {% when 'menu' %}
          <div class="grid__item {{ column_width }}">
            {% unless num_columns == 1 %}
            <h3 class="h4">{{ block.settings.menu_title | escape }}</h3>
            {% endunless %}
            <ul class="site-footer__links{% if num_columns == 1 %} inline-list{% endif %}">
              {% for link in linklists[block.settings.menu].links %}
                <li><a target="_blank" href="{{ link.url }}">{{ link.title }}</a></li>
              {% endfor %}
            </ul>
          </div>

 


Hi @Jasoliya  that worked perfectly thanks a lot!

0 Likes