How can I fix liquid error messages after removing Shopify app code?

I was removing the code of some apps I deleted and then their is this message : Liquid error: Could not find asset snippets/once-header.liquid Liquid error: Could not find asset snippets/swift_core.liquid that shows on all my website and I can’t remove it, I think I removed the wrong code somewhere. Does anybody know how I can put them back? Thank you.

@yaswest beside the above liquid error do you see anything broken? If not you can simply search the code to find the instances of either {% include ‘swift_core’ %} or {% include ‘once-hearder’ %} and put these under {% comments %} {% endcomments %} blocks

Thank you for your answer. I don’t really know what can be broken but I can’t seen anything, also I can’t find the instances in the codes I think I deleted them by mistake and I don’t know how to put them back :disappointed_face:

@yaswest , kindly share the store url, we might be able to get some insight

https://niphium.com/

If you know what files you deleted code out of, you can look at the top of the editor to revert to an older version of your code:

Just click the older versions link and it’ll give you a dropdown and you can click it to revert to previous saves.

I already tried that :(((

Sorry, I just found the instances but when I try to add the comments/endcomments lign, it says the code can’t be saved. Is there a specific way to add them?

I tried every combination put it always says “an error prevented theme.liquid from being saved”.

Hello do you why it is not working ?

@yaswest there is tyo=po…just use {% comment %}. without s and similarly {% endcomment %}

{% comment %}
// code you want to comment out
{% endcomment %}