All navigation links opening in New Tab. Any Help????

Solved
Highlighted
Tourist
4 0 0

All my navigation links are opening in a new tab. They all have "target_blank" in their anchor links, I cannot seem to find where this is located in the files.  I would like to stop all navigation links opening up in a new tab. Any help?

0 Likes
Highlighted
Hello autoaroma,
Please share your site url.
So that i can check and let you know the exact solution here.
Want to modify or incorporate custom changes on store, Hire us.
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Free Website Review and advice for sale from Shopify Conversion Experts | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | SEO & Digital Marketing | Site Speed Optimization | Performance Site Audit
1 Like
Highlighted
Tourist
4 0 0

here is the link: https://autoaroma.co.uk/

 

Many thanks for helping

0 Likes
Highlighted

@autoaroma,

Yo have to do changes in header.liquid file.

Search  this in header.liuid file

<ul class="nav navbar-nav menu-main">

and remove target="_blank" of a tag

Want to modify or incorporate custom changes on store, Hire us.
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Free Website Review and advice for sale from Shopify Conversion Experts | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | SEO & Digital Marketing | Site Speed Optimization | Performance Site Audit
1 Like
Highlighted
Tourist
4 0 0

@oscprofessional 

Hi, there is no line stating that in my header.liquid file. I also can't seem to find where it states target="_blank"

 

 

<!-- /sections/header.liquid -->

{% if template contains 'index' %}
  {% if section.settings.select_hds == "header_v1" %}
  {% include 'header-v1' %}
  {% elsif section.settings.select_hds == "header_v2" %}
  {% include 'header-v2' %}
  {% elsif section.settings.select_hds == "header_v3" %}
  {% include 'header-v3' %}
  {% elsif section.settings.select_hds == "header_v4" %}
  {% include 'header-v4' %}
  {% elsif section.settings.select_hds == "header_v5" %}
  {% include 'header-v5' %}
  {% endif %}
{% else %}
  {% if section.settings.select_hds_all == "header_ver1" %}
  {% include 'header-v1' %}
  {% elsif section.settings.select_hds_all == "header_ver2" %}
  {% include 'header-v2' %}
  {% elsif section.settings.select_hds_all == "header_ver3" %}
  {% include 'header-v3' %}
  {% elsif section.settings.select_hds_all == "header_ver4" %}
  {% include 'header-v4' %}
  {% elsif section.settings.select_hds_all == "header_ver5" %}
  {% include 'header-v5' %}
  {% endif %}
{% endif %}

{% schema %}
{
  "name": "Header",
  "class": "index-section",
  "settings": [
    {
      "type": "select",
      "id": "select_hds",
      "label": "Select Header Style for Homepage",
      "options": [
        {
          "value": "header_v1",
          "label": "Header v1"
        },
        {
          "value": "header_v2",
          "label": "Header v2"
        },
        {
          "value": "header_v3",
          "label": "Header v3"
        },
        {
          "value": "header_v4",
          "label": "Header v4"
        },
        {
          "value": "header_v5",
          "label": "Header v5"
        }
      ],
      "default": "header_v1",
      "info": "[View image with header designs](https://cdn.shopify.com/s/files/1/2205/2399/files/header.jpg?9714239087420014233)"
    },
    {
      "type": "select",
      "id": "select_hds_all",
      "label": "Select Header Style for All page (unless Homepage)",
      "options": [
        {
          "value": "header_ver1",
          "label": "Header v1"
        },
        {
          "value": "header_ver2",
          "label": "Header v2"
        },
        {
          "value": "header_ver3",
          "label": "Header v3"
        },
        {
          "value": "header_ver4",
          "label": "Header v4"
        },
        {
          "value": "header_ver5",
          "label": "Header v5"
        }
      ],
      "default": "header_ver1",
      "info": "[View image with header designs](https://cdn.shopify.com/s/files/1/2205/2399/files/header.jpg?9714239087420014233)"
    },
    {
      "type": "link_list",
      "id": "menu_ver1",
      "label": "Select Menu version 1"
    },
    {
      "type": "link_list",
      "id": "menu_ver2",
      "label": "Select Menu version 2"
    }
  ]
}
{% endschema %}

 

 

I am also using header-v3.liquid and header-v4.liquid

<header id="header" class="header-v3 delay05 {% if settings.enable_fix_hdv3 %}fixed{% endif %} full-width space_top_bot_20 margin_bottom_20 border-bot">
  	<div class="container-fluid container_35 space_top_bot_20">
      <div class="row flex">
        <div class="hidden-lg hidden-md col-sm-4 col-xs-4">
          <a href="#" class="link-menu delay03 inline-block hidden-md hidden-lg space_top_30 btn-push-menu icon-pushmenu">
            {% if settings.icon-pushmenu == blank %}
            <svg width="26" height="16" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 66 41" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve">
              <g>
                <line class="st0" x1="1.5" y1="1.5" x2="64.5" y2="1.5"></line>
                <line class="st0" x1="1.5" y1="20.5" x2="64.5" y2="20.5"></line>
                <line class="st0" x1="1.5" y1="39.5" x2="64.5" y2="39.5"></line>
              </g>
            </svg>
            {% else %}
            <i class="{{ settings.icon-pushmenu }}"></i>
            {% endif %}
          </a>
        </div>
        <div class="col-lg-3 col-md-3 col-sm-4 col-xs-4 logo_header">
          <a href="{{shop.url}}" class="left">
            {% if settings.hdv1_logo == blank %}
          	<img alt="{{shop.name}}" src="{{'logo.png' | asset_url}}" class="img-logo">
            {% else %}
            <img alt="{{shop.name}}" src="{{settings.hdv1_logo | img_url:'master'}}" class="img-logo">
            {% endif %}
          </a>
        </div>
        <div class="col-lg-6 col-md-6 hidden-sm hidden-xs flex center">
        	{% include 'ciloe-horizon-menu' %}
        </div>
        <div class="col-lg-3 col-md-3 col-sm-4 col-xs-4 text-right icon-main">
          <a href="#" class="delay03 inline-block" id="btn-search">
            {% if settings.icon-search == blank %}
            <i class="icon-magnifier"></i>
            {% else %}
            <i class="{{ settings.icon-search }}"></i>
            {% endif %}
          </a>
          {% if customer.email != blank %}
          <a class="delay03 inline-block hidden-sm hidden-xs" href="/account/logout" title="logout">
            {% if settings.icon-logout == blank %}
            <i class="icon-power"></i>
            {% else %}
            <i class="{{ settings.icon-logout }}"></i>
            {% endif %}
          </a>
          {% else %}
          <a href="#login_form" class="delay03 inline-block hidden-sm hidden-xs" id="btn-login">
            {% if settings.icon-login == blank %}
            <i class="zoa-icon-user"></i>
            {% else %}
            <i class="{{ settings.icon-login }}"></i>
            {% endif %}
          </a>
          {% endif %}
          <a href="#" class="delay03 relative inline-block text-center icon-cart" id="btn-cart">
            {% if settings.icon-cart == blank %}
            <i class="icon-bag"></i>
            {% else %}
            <i class="{{ settings.icon-cart }}"></i>
            {% endif %}
            <figure class="absolute label-cart enj-cartcount">{{ cart.item_count }}</figure>
          </a>
          
        </div>
      </div>
      {% comment %}
      <div class="row">
        <div class="hidden-lg hidden-md col-sm-12 col-xs-12 form_search_mobile space_top_40">
          <form method="get" action="/search" role="search" class=" flex">
            <input type="text" class="form-control control-search" value="" autocomplete="off" placeholder="Search ..." aria-label="SEARCH" name="q">
            <button class="button_search absolute" type="submit">
              {% if settings.icon-search == blank %}
              <i class="icon-magnifier fz-18"></i>
              {% else %}
              <i class="{{ settings.icon-search }} fz-18"></i>
              {% endif %}
            </button>
          </form> 
        </div>
      </div>
      {% endcomment %}
   	</div>
</header>
<style>
  .header-v3{
    background: {{settings.bg_header_v3}};
  }
  .border-bot{
    border-bottom: {{settings.border_size_v3}}px solid {{settings.border_color_v3}};
  }
</style>
<header id="header" class="header-v4 space_top_bot_20 delay05 {% if template.name contains 'product' %}border-bot{% endif %} {% if template.name contains 'article' %}border-bot{% endif %}">
  <div class="container-fluid container_35 space_top_bot_20">
    <div class="row flex">
      <div class="hidden-lg hidden-md col-sm-4 col-xs-4">
          <a href="#" class="link-menu delay03 inline-block hidden-md hidden-lg space_top_30 btn-push-menu icon-pushmenu">
            {% if settings.icon-pushmenu == blank %}
            <svg width="26" height="16" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 66 41" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve">
              <g>
                <line class="st0" x1="1.5" y1="1.5" x2="64.5" y2="1.5"></line>
                <line class="st0" x1="1.5" y1="20.5" x2="64.5" y2="20.5"></line>
                <line class="st0" x1="1.5" y1="39.5" x2="64.5" y2="39.5"></line>
              </g>
            </svg>
            {% else %}
            <i class="{{ settings.icon-pushmenu }}"></i>
            {% endif %}
          </a>
        </div>
      <div class="col-lg-5 col-md-5 hidden-sm hidden-xs flex">
        {% include 'ciloe-horizon-menu' %}
      </div>
      <div class="col-lg-2 col-md-2 col-sm-4 col-xs-4 logo_header text-center">
        <a href="{{shop.url}}" class="">
          {% if settings.hdv1_logo == blank %}
          <img alt="{{shop.name}}" src="{{'logo.png' | asset_url}}" class="img-logo inline-block">
          {% else %}
          <img alt="{{shop.name}}" src="{{settings.hdv1_logo | img_url:'master'}}" class="img-logo inline-block">
          {% endif %}
        </a>
      </div>
      <div class="col-lg-5 col-md-5 col-sm-4 col-xs-4 text-right icon-main">
        <a href="#" class="delay03 inline-block" id="btn-search">
          {% if settings.icon-search == blank %}
          <i class="icon-magnifier"></i>
          {% else %}
          <i class="{{ settings.icon-search }}"></i>
          {% endif %}
        </a>
        {% if customer.email != blank %}
        <a class="delay03 inline-block hidden-sm hidden-xs" href="/account/logout" title="logout">
          {% if settings.icon-logout == blank %}
          <i class="icon-power"></i>
          {% else %}
          <i class="{{ settings.icon-logout }}"></i>
          {% endif %}
        </a>
        {% else %}
        <a href="#login_form" class="delay03 inline-block hidden-sm hidden-xs" id="btn-login">
          {% if settings.icon-login == blank %}
          <i class="zoa-icon-user"></i>
          {% else %}
          <i class="{{ settings.icon-login }}"></i>
          {% endif %}
        </a>
        {% endif %}
        <a href="#" class="delay03 relative inline-block text-center icon-cart" id="btn-cart">
          {% if settings.icon-cart == blank %}
          <i class="icon-bag"></i>
          {% else %}
          <i class="{{ settings.icon-cart }}"></i>
          {% endif %}
          <figure class="absolute label-cart enj-cartcount">{{ cart.item_count }}</figure>
        </a>
        
      </div>
    </div>
    {% comment %}
    <div class="row">
        <div class="hidden-lg hidden-md col-sm-12 col-xs-12 form_search_mobile space_top_40">
          <form method="get" action="/search" role="search" class=" flex">
            <input type="text" class="form-control control-search" value="" autocomplete="off" placeholder="Search ..." aria-label="SEARCH" name="q">
            <button class="button_search absolute" type="submit">
              {% if settings.icon-search == blank %}
              <i class="icon-magnifier fz-18"></i>
              {% else %}
              <i class="{{ settings.icon-search }} fz-18"></i>
              {% endif %}
            </button>
          </form> 
        </div>
      </div>
    {% endcomment %}
  </div>
</header>

  

0 Likes
Highlighted

Success.

@autoaroma,

You are using custom theme.

Check megamenu.liquid files

Want to modify or incorporate custom changes on store, Hire us.
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Free Website Review and advice for sale from Shopify Conversion Experts | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | SEO & Digital Marketing | Site Speed Optimization | Performance Site Audit
1 Like
Highlighted
Tourist
4 0 0

Thank you so much, that seems to have worked!

0 Likes