I wonder does anyone know here how to disable pages from opening in a new tab? All the pages in header and footer are opening in a new tab instead of just loading within the same page. We’re using Ella Theme.
Hello there,
- In your Shopify Admin go to online store > themes > actions > edit code
- Find Asset > theme.js , custom.js and paste this at the bottom of the file:
$(document).ready(function() {
$('a[target="_blank"]').removeAttr('target');
});
Hi there. Do I need to paste on both? I can only see theme.js and custom.js in another tab.
@ZestardTech when I click on assets> theme.js this is the only thing that shows up
