Help. I deleted 2 lines of code and apparently not the good ones

Hello,

I was trying to optimise for speed golden-pigs.com and I deleted two lines of code and now I have an error when opening the website.

the following code snippets appear above the website’s header:

  • Liquid error (layout/theme line 142): Could not find asset snippets/zenithify.smartlabels.liquid
  • Liquid error (layout/theme line 146): Could not find asset snippets/easy-gdpr-settings.liquid

Can someone help please?

Also, the header image is causing a big delay in speed. Can someone help with this also? :grinning_face_with_smiling_eyes:

https://pagespeed.web.dev/analysis/https-www-golden-pigs-com/9iiz0dqmre?form_factor=mobile

Thank you in advance!

Kind regards,

Cristi

Hi @Golden_Pigs ,

The error is because those two files do not exist in your published theme. To fix this issue, you just need to add two similar empty files to the published theme you are using; it won’t affect your website.

Please follow these steps:

Step 1: Navigate to Online Store > Themes > Edit code

Step 2: Move to Snippets folder > Add a new snippet and add 2 file zenithify.smartlabels.liquid and easy-gdpr-settings.liquid as below figure

Hope this can help you,

If our suggestions are useful, please let us known by giving a like or marking it as a solution. Thank you :heart_eyes: :heart_eyes: :heart_eyes:

1 Like