website: www.innerbloomca.com
Issue: After clicking COA and clicking another menu item it opens that menu item into a new tab
COA: using pages to edit the file
Expected behavior: next menu item after coa should not open a new tab
I found that it has something to do with the way my page is formatted. When i erased all the text content in the coa page and tested the menu item. it does not open a new menu link. Once i added the first hyperlink it started doing this.
HOWEVER, my old page had hyperlinks before just fine. I reformatted it to center align the header and it started doing this. Now I cant go back.
Hi @innerbloom_team
I see you’re having a bit of a hiccup with your Shopify menu link behavior on Innerbloomca.com. Specifically, clicking on another menu item after visiting the COA page opens it in a new tab. That’s definitely not ideal, and I can help you troubleshoot this.
Based on the info you provided, it seems like the culprit might be related to the formatting of your COA page, particularly the hyperlink you added. Let’s break down some possibilities and solutions:
1- Target Attribute in the Hyperlink:
It’s possible the hyperlink you added on your COA page has a target=“_blank” attribute. This code tells the browser to open the linked webpage in a new tab.
Solution:
In some rare cases, there might be conflicting code within your theme that could be causing the issue. This is less likely, but still worth considering.
Solution:
-
If removing the target=“_blank” attribute doesn’t work, you can try temporarily switching to a different Shopify theme (like Debut) to see if the problem persists. This will help identify if the issue is theme-specific
3-Consider a Shopify App (For Advanced Users):
There are Shopify apps available that allow you to customize your menu behavior. However, this might be a bit more technical and might require some coding knowledge.
Here are some additional tips:
- Since you mentioned the issue started after you reformatted the header to center-align it, double-check that you haven’t accidentally added any extra code around the menu section in your theme files that could be causing the issue.
If you’re not comfortable editing code, or these solutions don’t work, don’t hesitate to reach out to Shopify support. They can take a closer look at your theme and website to pinpoint the exact cause.
I hope this helps! Feel free to ask if you have any further questions or need clarification on any of the steps.
Best regards,
Daisy.