Liquid error: Could not find asset snippets/alireviews_core.liquid

Solved
Murtaza_Nabi
Tourist
4 0 1

Creating a new snippet with the name after / in error without the .liquid resolves this issue too if you can't find the file name like i wasn't able to do for a similar error.

0 Likes
Chin1
Excursionist
11 0 1

Also {% include 'vitals-loader' %} if removing vitals

0 Likes
bubalina
New Member
1 0 0

I'm getting the following error can you help? 

 

Liquid error: Could not find asset snippets/smile-initializer.liquid

 

 

Thanks in advance 

0 Likes
zaleyautopia
Tourist
7 0 1

Thank you 'twas driving me insane and believe me after looking at the {/} theme.liquid , line 89 i got rid of the annoying little thing.

daydreamerz88
New Member
1 0 0

i am having this error too

 

I can't find that piece of code....

 

 

0 Likes
zaleyautopia
Tourist
7 0 1

Did you go to the online store >edit code >search for products >line 89 it’s there 

0 Likes
chadharaja
New Member
3 0 0

Thanks dear ,it worked.

0 Likes
SanaAhmed
Excursionist
11 1 1

I was able to resolve it. Delete the file that you have created in asset and then follow the steps mention

  1. In the Snippets directory, click Add a new snippet.

  2. Name your snippet back-to-the-top, then click Create snippet. Your snippet file opens in the code editor.

  3. Paste the following code into your newly created back-to-the-top file:

    Copy
        {% comment %} 
        Reduce below value if you need the back to the top button to appear higher up on the page. 
        That value is in pixels.
        {% endcomment %}
        {% assign vertical_offset_for_trigger = 300 %}
    
        {% comment %} 
        Vertical offset from bottom of browser for the position of the button.
        {% endcomment %}
        {% assign position_from_bottom = '6em' %}
    
        <a id="BackToTop" href="#" title="Back to the top" class="back-to-top hide">
        <span>Back to the top</span> <i class="fa fa-arrow-circle-o-up fa-2x"></i> 
        </a>
        {{ '//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css' | stylesheet_tag }}
        <style>
        .back-to-top {
        position: fixed;
        bottom: {{ position_from_bottom }};
        right: 0px;
        text-decoration: none;
        color: #999;
        background-color: #eee;
        font-size: 16px;
        padding: 0.3em;
        -webkit-border-top-left-radius: 3px;
        -webkit-border-bottom-left-radius: 3px;
        -moz-border-radius-topleft: 3px;
        -moz-border-radius-bottomleft: 3px;
        border-top-left-radius: 3px;
        border-bottom-left-radius: 3px;
        z-index: 60000;
        }
        .back-to-top i {
        vertical-align: middle;
        }
        .back-to-top span {
        padding-left: 0.5em;
        }
        .back-to-top i + span {
        padding-left: 0;
        }
        .back-to-top:hover {
        text-decoration: none;
        color: #555;
        }
        .hide {
        display: none!important;
        }
        </style>
        <script>
        (function() {
        function trackScroll() {
            var scrolled = window.pageYOffset;
            var coords = {{ vertical_offset_for_trigger }};
    
            if (scrolled > coords) {
            goTopBtn.classList.remove('hide');
            }
            if (scrolled < coords) {
            goTopBtn.classList.add('hide');
            }
        }
    
        function backToTop() {
            if (window.pageYOffset > 0) {
            window.scrollBy(0, -80);
            setTimeout(backToTop, 0);
            }
        }
    
        var goTopBtn = document.querySelector('.back-to-top');
    
        window.addEventListener('scroll', trackScroll);
        goTopBtn.addEventListener('click', backToTop);
        })();
        </script>
  4. Click Save.

0 Likes
federicamontani
New Member
3 0 0

Hello, I also get a message on all the pages that says: "Liquid error: Could not find asset snippets/ajaxify-cart.liquid" and I was not able to remove it. Could someone please help me?

I have Brooklyn theme and I have followed this article https://community.shopify.com/c/Shopify-Design/Product-pages-Stay-on-the-product-page-after-adding-p... for my Add to Cart buttons.

Thank you!

0 Likes