Hello, is there anyone who can help me resolve an issue on my website? There is a hard-coded broken link that I would like to have removed. I would greatly appreciate any assistance in fixing this problem.
Hi,
Yes, this should be fixable. A hard-coded broken link is usually located inside the theme code, page template, navigation code, app block or custom HTML section.
Could you share:
-
Your website platform
-
The page where the broken link appears
-
The website URL
-
What happens when the link is clicked
Once the location is identified, the link can either be removed or replaced without affecting the rest of the page.
Best of luck.
what is your store URL, plus the storefront password if the store is still locked
meanwhile you can do it yourself:
- Right click the broken link and choose Copy link address.
- And look at the following places for broken links:
- Content > Menus, if it is in a nav bar or a footer menu
- Online Store > Themes > Customize, if it is a button or a rich text link inside a section
- Content > Pages, if it sits in page content
Then search the theme.
Online Store > Themes, the three dots next to your theme, Edit code.
Click the magnifier in the left rail, or press Ctrl+Shift+F, and paste the URL.
- If you find broken link in a
.liquidfile → Delete the whole<a ...>...</a>. - if you find it in in
templates/*.jsonorconfig/settings_data.json: Change it in Customize instead, or the editor will just put it back. - if you dont find any → means it is coming from an app block or from your navigation menu, not the theme.
