Hi there,
On the homepage https://regeljebusiness.nl/ I have a section called “Het software landschap” with links to my collection pages. Right now they all open in a new window. I’ve added _self. But that’s still not working. What am I doing wrong here?
Example link:
[➤ Boekhouding](https://regeljebusiness.nl/collections/boekhouding)
1 Like
Using _self or simply removing the target attribute should work. I opened your store and edited the code using Chrome Dev Tools on my end and it opened in the same window.
Double check it’s saving properly with your changed code for those links.
Don’t use and attribute! Just use this one for the html code
"[ Boekhouding](https://regeljebusiness.nl/collections/boekhouding)"
Also check the below screenshot where you will get 2nd option to prevent links open in new window.
Let me know if still you are facing the issue
That’s strange, because if i go to the website customizer the changed code is still there. See screenshot. I’ve put this in an text section burb. Maybe this section changes the code? Because as you can see, the right code is still there.
Thank you for your reply. I have no such options since I’m putting html in a text section. See:
Hi Jay, thanks! i saved it correctly and the right code is still there. But it’s not coming through on the website.
It must be that either:
- It’s not saving properly (or the changes are being saved but not published?)
- Shopify is replacing your links for some reason
- You’re editing a different link to the one you’re checking
The first seems the most likely, but it’s hard to say.
Hi @daisyweber ,
I am Anni From https://www.task4store.com/ - Shopify Small & Custom Tasks Experts ( By MS Web Designer - Top Rated Shopify Certified Experts and eCommerce Consultant from Singapore )
Here are the Solutions!
[➤ CRM-systemen](https://regeljebusiness.nl/collections/crm-systemen)
Don’t use target attribute
If you have any concerns feel free to ask me!
Regards,
Anni
No, shopify is replacing it. I check by changing the text and that comes true. But they keep publishing the link without the _self in it.
Hi Anni, thanks for your reply. Unfortunately after saving Shopify automatically replaces the link with target _blank in it. I can’t seem to fix this 
1 Like