Opening Links in Same Window (Supply Theme)

Highlighted
New Member
4 0 0

Hi,

We're trying to get links to open in the same window. If you click on a main menu item (eg. "Key Storage"), and then a submenu item on that page (eg. "Key Cabinets & Tags"), it opens in a new tab even when set to open in the same window (in the back end). Is there a section in the code I have to edit so we can have all submenu items open in the same window/tab?

https://luckyline.com/ 

example page: https://luckyline.com/pages/key-storage 

Thanks!

0 Likes
Highlighted

Hi @LuckyLine 

I have opened your site in a number of browsers now and the navigation seems to be working as should (opening in the same window)

What are the specs of your computer and browser?

 

Need help with Shopify? Your first 45 minutes are on Buzzbar
0 Likes
Highlighted
New Member
4 0 0

Hello,

If you click on an image on this page, does it open in a new tab? https://luckyline.com/pages/key-storage 

The drop-down menus work, but the actual links on certain pages don't.

 

It's opening in a new tab on multiple browsers for us: firefox, chrome, etc.

0 Likes
Highlighted

Hi @LuckyLine 

 

ah I see, the problem is on the hyperlink on the image:

<a href="https://luckyline.myshopify.com/collections/key-cabinets-tags-1" target="_blank" rel="noreferrer noopener"><img src="https://cdn.shopify.com/s/files/1/0061/1962/0711/files/large-cabinet.jpg?13138" alt="Key Cabinets Tags"> </a>

If you remove target="_blank" that will open the links in the same window.

Thanks,

Craig

Need help with Shopify? Your first 45 minutes are on Buzzbar
0 Likes
Highlighted
New Member
4 0 0

Hi @buzzcraig 

I'm not seeing target="_blank" in the code (while editing the page -would it be in another location?). I can see it if I toggle the option in the simple editor, but all appear to be set to open in the same window

 

Page code:

<div class="container pg-key-storage">
<div class="row">
<div class="col-sm-6 col-md-3 lucky-col"><a href="https://luckyline.myshopify.com/collections/key-cabinets-tags-1"> </a>
<h4><a href="https://luckyline.myshopify.com/collections/key-cabinets-tags-1">Key Cabinets &amp; Tags</a></h4>
<a href="https://luckyline.myshopify.com/collections/key-cabinets-tags-1"> </a><hr class="lucky-hr" /><a href="https://luckyline.myshopify.com/collections/key-cabinets-tags-1"><img src="https://cdn.shopify.com/s/files/1/0061/1962/0711/files/large-cabinet.jpg?13138" alt="Key Cabinets Tags" /> </a></div>
<div class="col-sm-6 col-md-3 lucky-col"><a href="https://luckyline.myshopify.com/collections/file-a-key%E2%84%A2-1"> </a>
<h4><a href="https://luckyline.myshopify.com/collections/file-a-key%E2%84%A2-1">File-A-Key™</a></h4>
<a href="https://luckyline.myshopify.com/collections/file-a-key%E2%84%A2-1"> </a><hr class="lucky-hr" /><a href="https://luckyline.myshopify.com/collections/file-a-key%E2%84%A2-1"><img src="https://cdn.shopify.com/s/files/1/0061/1962/0711/files/file-a-key.jpg?13138" alt="File a Key" /> </a></div>
<div class="col-sm-6 col-md-3 lucky-col"><a href="https://luckyline.myshopify.com/collections/key-tag-racks-organization-1"> </a>
<h4><a href="https://luckyline.myshopify.com/collections/key-tag-racks-organization-1">Key Tag Racks &amp; Organization</a></h4>
<a href="https://luckyline.myshopify.com/collections/key-tag-racks-organization-1"> </a><hr class="lucky-hr" /><a href="https://luckyline.myshopify.com/collections/key-tag-racks-organization-1"><img src="https://cdn.shopify.com/s/files/1/0061/1962/0711/files/key-tag-rack.jpg?13138" alt="Key tag Racks" /></a></div>
<div class="col-sm-6 col-md-3 lucky-col"><a href="https://luckyline.myshopify.com/collections/key-saver-portfolio-1"> </a>
<h4><a href="https://luckyline.myshopify.com/collections/key-saver-portfolio-1">Key Saver Portfolio</a></h4>
<a href="https://luckyline.myshopify.com/collections/key-saver-portfolio-1"> </a><hr class="lucky-hr" /><a href="https://luckyline.myshopify.com/collections/key-saver-portfolio-1"><img src="https://cdn.shopify.com/s/files/1/0061/1962/0711/files/portfolio.jpg?13138" alt="key saver portfolio" /></a></div>
</div>
</div>

 

Screen Shot 2020-10-28 at 10.51.11 AM.png

0 Likes