Help Needed to Remove Broken Links from Theme Code

Topic summary

A Shopify store owner is struggling with hundreds of broken links (images and fonts) after duplicating a theme from another website and manually uploading it. The broken links reference files that existed on the original site but aren’t present in the current installation.

Key Details:

  • The theme isn’t receiving automatic updates since it was manually uploaded
  • Broken links appear throughout the theme code (example: image files like black_120x120.png)
  • The Ablestar Link Manager app failed to detect these broken links

Proposed Solutions:

  • One user suggested the issue stems from custom code being removed during theme updates, though this doesn’t apply since the theme isn’t auto-updating
  • Another user recommended trying a redirect app that supports automatic broken link redirecting and bulk redirect functionality

Current Status:
The discussion remains open with the store owner seeking more efficient alternatives to manually removing hundreds of broken links from the theme code, such as bulk cleaning tools, scripts, or specialized apps.

Summarized with AI on October 27. AI used: claude-sonnet-4-5-20250929.

Hello Shopify Community,

I am the part of a Shopify store called “Vici Fashion Club India” (vicifashionclub.com/). We recently duplicated a theme from another website and customized it for our store. However, we are facing an issue with numerous broken links in the theme code, including links to images and fonts that no longer exist.

We have tried to locate and remove these broken links, but there are too many to handle manually. We would greatly appreciate any guidance or assistance in removing these broken links from the theme code. If anyone has experience with this or can recommend a developer who can help us, that would be fantastic!

Thank you for your support!

Best regards,
Asish Gidugu
Vici Fashion Club India

Hey @Asish ,

This happen when you do custom code in your theme file. So once the theme update then it remove the custom code.

So in order to keep the things same on the updated theme then you need to paste the code again in the updated version.

Hey @TheScriptFlow_1 ,

Thanks for the response.

As I mentioned, the Shopify theme was duplicated from one of our other sites and manually uploaded here—so it’s not set to receive automatic updates.

It’s likely that the original site had those image and font files, but they aren’t present in the current version. I’ve come across multiple broken links, like this one:
https://vicifashionclub.com/cdn/shop/files/black_120x120.png?115

I did spot many of these references in the “Edit Code” section—probably hundreds of them across the theme. We tried using the Ablestar Link Manager app, but it didn’t detect any broken links for some reason.

So my question is:
Is manually removing them from the code the only way forward, or is there a more efficient method (like a tool, script, or app) to bulk clean or flag these broken links from the theme?

Would appreciate any guidance on this.

Best regards,
Asish
Vici Fashion Club India

Hi @Asish

This issue is mostly related to your action after duplicating the theme you mentioned from another store, as each store has individual structures and not all the store can work perfectly, and it has compatibility issues especially on the page redirections.

I just wonder if you would like to handle this issue with the help of the app end, as I installed one on my another store, and it supports automatically broken link redirecting as well as bulk redirect. You can have a try and see if this one can save your time and energy to resolve this issue. Thank you!