Problem with Liquid error: Could not find asset snippets/css-fonts.liquid and gallery

Solved

Problem with Liquid error: Could not find asset snippets/css-fonts.liquid and gallery

Aleksandra1214
Visitor
3 0 0

Hello everyone,

I i have this error on my page and my product gallery on every page just got crazy.  I can't make picture bigger and there is no main photo. Can someone help me? Please. 

Zrzut ekranu 2023-01-10 o 20.28.08.png

 

Accepted Solution (1)

Moira
Shopify Staff (Retired)
2118 231 340

This is an accepted solution.

Hey @Aleksandra1214,

 

Welcome to the Shopify Community!

 

This error message suggests that there is a problem with a Liquid file called "snippets/css-fonts.liquid" that is causing the product gallery to not display correctly. One thing you can try to fix this issue is to locate the file in your Shopify theme and make sure that it exists and is properly formatted. 

 

You can locate the file by accessing the theme code editor in your Shopify admin panel. Go to "Online Store > Themes", and click the "Actions" button for the theme you're using. Then, select "Edit Code". On the left sidebar, look for the "Snippets" folder and look for the file called "css-fonts.liquid" inside it. If you don't find this file, you may need to create it.

 

If the file is present but still not working, you may also check for errors in the file.

Liquid files use a specific syntax and structure, so make sure that the code in the file is valid and well-formed. You can also compare the code in the "css-fonts.liquid" with the original file of the theme or with a fresh installation to check the differences. If you are not comfortable with editing the file yourself, you can also reach out to the theme developer or a Shopify expert for help.

 

Another thing that could be causing this issue is if the file is being referenced in some liquid code and that code has been removed or modified. If you've changed theme files and need to revert them, you can roll back .liquid files individually to a time and date before you made the changes.

 

Important Note: If you make changes to the original code and save the changes, we always suggest you first duplicate the theme and work in the duplicate. That way you can always go back to your previous version.

 

Otherwise, how is the rest of your store going? Is there anything, in particular, you're looking to customize on your store? A well-designed store helps make a first strong impression on prospective customers, so it's worthwhile to take some time in making sure that all elements of your store are purposeful. We have some really great blogs that can help optimize your design strategy, feel free to take a closer look at them below:

 

 

Moira | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog

View solution in original post

Replies 5 (5)

niraj_patel
Shopify Partner
2391 516 515

@Aleksandra1214 

hello

 

Please give me the product page URL

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com
Aleksandra1214
Visitor
3 0 0

Hi,

I came back to original code on the and it's started working but thank you very much that you wanted to help!

Moira
Shopify Staff (Retired)
2118 231 340

This is an accepted solution.

Hey @Aleksandra1214,

 

Welcome to the Shopify Community!

 

This error message suggests that there is a problem with a Liquid file called "snippets/css-fonts.liquid" that is causing the product gallery to not display correctly. One thing you can try to fix this issue is to locate the file in your Shopify theme and make sure that it exists and is properly formatted. 

 

You can locate the file by accessing the theme code editor in your Shopify admin panel. Go to "Online Store > Themes", and click the "Actions" button for the theme you're using. Then, select "Edit Code". On the left sidebar, look for the "Snippets" folder and look for the file called "css-fonts.liquid" inside it. If you don't find this file, you may need to create it.

 

If the file is present but still not working, you may also check for errors in the file.

Liquid files use a specific syntax and structure, so make sure that the code in the file is valid and well-formed. You can also compare the code in the "css-fonts.liquid" with the original file of the theme or with a fresh installation to check the differences. If you are not comfortable with editing the file yourself, you can also reach out to the theme developer or a Shopify expert for help.

 

Another thing that could be causing this issue is if the file is being referenced in some liquid code and that code has been removed or modified. If you've changed theme files and need to revert them, you can roll back .liquid files individually to a time and date before you made the changes.

 

Important Note: If you make changes to the original code and save the changes, we always suggest you first duplicate the theme and work in the duplicate. That way you can always go back to your previous version.

 

Otherwise, how is the rest of your store going? Is there anything, in particular, you're looking to customize on your store? A well-designed store helps make a first strong impression on prospective customers, so it's worthwhile to take some time in making sure that all elements of your store are purposeful. We have some really great blogs that can help optimize your design strategy, feel free to take a closer look at them below:

 

 

Moira | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog

Aleksandra1214
Visitor
3 0 0

Hello @Moira,

i got back to the previous version of my liquid.file and now everything is working good. Thank you for all your tips and additional information! I finished making my store and i hope that it turned out great. Today I will be taking off the password so we will see. 🙂

Moira
Shopify Staff (Retired)
2118 231 340

Great to hear @Aleksandra1214!  I also recommend checking out Shopify Learn, the best destination for educational resources about Shopify. It will walk you through the steps to ensure your store is ready for launch!

 

Don't hesitate to reach back out if you require any further assistance as you continue to work on your store. 

 

All the best,

Moira | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog