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

Solved

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

Golden_Pigs
Tourist
17 0 1

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? 😄 

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

 

Thank you in advance! 

Kind regards,

Cristi

 

Accepted Solution (1)

BSSCommerce-TC
Shopify Partner
225 49 51

This is an accepted solution.

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

BSSCommerceTC_0-1720266841590.png

 

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 😍😍😍

 

If our suggestions are useful, please let us know by giving it a like, marking it as a solution.


MIDA: Heatmap, Record & Replay |BLOOP Referral Program, Reward |

Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency

View solution in original post

Reply 1 (1)

BSSCommerce-TC
Shopify Partner
225 49 51

This is an accepted solution.

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

BSSCommerceTC_0-1720266841590.png

 

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 😍😍😍

 

If our suggestions are useful, please let us know by giving it a like, marking it as a solution.


MIDA: Heatmap, Record & Replay |BLOOP Referral Program, Reward |

Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency