Open internal link in new window

New Member
2 0 0

I am using the Brooklyn theme. On the product pages and checkout, there is a legend that says

 

"Tax included. Shipping calculated at checkout."  with shipping being a hyperlink to my shipping policy page. However, when you click on that link it takes you to that page on the same window. I want it to open in a new window. How can I do that?

 

So far I have identified these pieces of code that seem to relate to this:

            {%- capture taxes_shipping_checkout -%}
                {%- if shop.taxes_included and shop.shipping_policy.body != blank -%}
                  {{ 'cart.general.taxes_included_and_shipping_policy_html' | t: link: shop.shipping_policy.url }}
                {%- elsif shop.taxes_included -%}
                  {{ 'cart.general.taxes_included_but_shipping_at_checkout' | t }}
                {%- elsif shop.shipping_policy.body != blank -%}
                  {{ 'cart.general.taxes_and_shipping_policy_at_checkout_html' | t: link: shop.shipping_policy.url }}
                {%- else -%}
                  {{ 'cart.general.taxes_and_shipping_at_checkout' | t }}
                {%- endif -%}
              {%- endcapture -%}

 

AND

 

        {%- if shop.taxes_included or shop.shipping_policy.body != blank -%}
              <div class="product-single__policies rte">
                {%- if shop.taxes_included -%}
                  {{ 'products.general.include_taxes' | t }}
                {%- endif -%}
                {%- if shop.shipping_policy.body != blank -%}
                  {{ 'products.general.shipping_policy_html' | t: link: shop.shipping_policy.url }}
                {%- endif -%}
              </div>
            {%- endif -%}

What do I need to edit to have this shipping page open in a new window? It would be even better if the window was a bit smaller, kind of like a popup, don't know if that would be possible.

 

 
 
0 Likes
Shopify Expert
665 170 199

Hi, @Quijibu ,

This is Evita from On The Map.

 

Maybe this will help - https://help.shopify.com/en/themes/customization/navigation/open-external-links-in-new-browser

 

Best,
Evita

On The Map Marketing | Developing custom Shopify Sites & Apps is our thing

- Install our latest app Accessibly - Makes your store accessible for everyone, helps to avoid fines
- Inc 5000 | Shopify Parners | 20+ stores launched | 300+ active clients
- Need help with your Shopify store? Reach out to us!
0 Likes
New Member
2 0 0

This is an internal link, not an external.

 

Anyway, I found a way to do it using the "edit languages" section

0 Likes