Liquid Error: Unknown operator !|=

Sonrisabeach
New Member
4 0 0

When I click on any links on my website, "Liquid Error: Unknown operator !|=" displays at the top of the page. Can anyone suggest a solution for this issue? Thank you in advance!

0 Likes
Propero
Shopify Partner
685 80 117

@Sonrisabeach 

Welcome to the Shopify community. Did you or anyone else make any changes in the code recently? On which page the issue comes? Can you share the store URL?

If you know where the issue come from you can just look-up in code and replace  !|= with !=

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution

To hire: email us at shopify@propero.in

Skype : lokendra.panwar1
0 Likes
Sonrisabeach
New Member
4 0 0

Hello. Thank you for your prompt reply. I had inserted the Google Site Verification code at the top of the theme.liquid section, but later removed it. Also, at the bottom of the theme.liquid page, I put some spacer code for the images on the collection page, per some directions I found online. Also, I removed that code since it did not work.  I would like to note that I was careful to remove only each new code I had entered. 

The issues comes from the top of the header each time a new section is loaded when a new link is clicked. The store URL is www.modatierra.com.

Again, Thank you for your assistance. 

Gregg

0 Likes
Lixon_Louis
Shopify Partner
1174 34 229

@Sonrisabeach possible to share the code of theme.liquid here? see the screenshot.

 

 

view-source_https___www.modatierra.com - Google Ch.png

 

Available for hiring. Reach me at lixon@ecommercestudio.in
0 Likes
Sonrisabeach
New Member
4 0 0

Here is all the code for theme.liquid:

 

<!doctype html>
<!--[if IE 9]> <html class="ie9 no-js" lang="{{ shop.locale }}"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> 
<html class="no-js" lang="{{ shop.locale }}"> <!--<![endif]-->
  <head>
    
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,user-scalable=1">
    
    <meta name="theme-color" content="{{ settings.color_button }}">
    <link rel="canonical" href="{{ canonical_url }}">
    
    {% if settings.favicon != blank %}
    <link rel="shortcut icon" href="{{ settings.favicon | img_url: '32x32' }}" type="image/png">
    {% else %}
    <link rel="shortcut icon" href="{{ 'favicon.png' | asset_url }}" type="image/x-icon" />
    {% endif %}
    {% capture seo_title %}
    {{ page_title }}
    {% if current_tags %}
    {%- assign meta_tags = current_tags | join: ', ' %} &ndash; {{ 'general.meta.tags' | t: tags: meta_tags -}}
    {% endif %}
    {% if current_page != 1 %}
    &ndash; {{ 'general.meta.page' | t: page: current_page }}
    {% endif %}
    {% unless page_title contains shop.name %}
    &ndash; {{ shop.name }}
    {% endunless %}
    {% endcapture %}
    <title>{{ seo_title }}</title>
    {% if page_description %}
    <meta name="description" content="{{ page_description | escape }}">
    {% endif %}
    <!-- Scrip -->
    {% include 'head-script' %}
    {% include 'theme-config' %}
    {% include 'head_fonts' %}
    {% include 'social-meta-tags' %}
    {% if template contains 'product' %}
    <script>
      Shopify.Products.showRecentlyViewed( { howManyToShow:4 } );  
      Shopify.Products.recordRecentlyViewed();
    </script>
    {% endif %}
    {{ content_for_header }}
  </head>
  <body class="template-{{ template | split: '.' | first }}">
    <div id="wrapper" class="page-wrapper {{ settings.wrapper_page_type }} {{ settings.effect }}">
      <!--   Loading Site -->
      {% if settings.loading_enable %}
      <div id="loadingSite">
        {% if settings.img_loading !l= blank %}
        <div class="loader"></div>
        {% endif %}
        {% if settings.img_loading == blank %}
        {% include 'ss-loader' %}
        {% endif %}
      </div>
      {% endif %}
      {% include 'header-style1' %}
      <div class="quick-view"></div>
      <div class="page-container" id="PageContainer">
        <div class="main-content" id="MainContent">
          {{ content_for_layout }}
        </div>
        {% section 'footer' %}
        {% section 'ss-tools' %}
        {% section 'ss-facebook-message' %}
        {% section 'ss-category-cowdown' %}
      </div>
      {% include 'modal' %}
      {% include 'ss-quickview' %}
      {% include 'footer-script' %}
      {% include 'ss-autosearch' %}
    </div>
  </body>
</html>
0 Likes
Propero
Shopify Partner
685 80 117

@Sonrisabeach 

Please replace the following line 

{% if settings.img_loading !l= blank %}

with this

{% if settings.img_loading != blank %}
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution

To hire: email us at shopify@propero.in

Skype : lokendra.panwar1
0 Likes
Lixon_Louis
Shopify Partner
1174 34 229

@Propero is correct. 

 

Re_ Liquid Error_ Unknown operator !_= - Shopify C.png

Available for hiring. Reach me at lixon@ecommercestudio.in
0 Likes
Sonrisabeach
New Member
4 0 0

Hello. I updated the code per your directions and the issue has been solved. Thank you so much for your assistance!

Gregg

0 Likes
animusfilmco
Tourist
10 0 2

Hey There, 

 

I'm having the same issue, but not finding that code in my theme.liquid. Can you please help me resolve this?

 

Thanks in advance!

 

<!doctype html>
<html class="no-js" lang="{{ shop.locale }}">
<head>

<!-- Basic page needs ================================================== -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

{% if settings.favicon %}
<link rel="shortcut icon" href="{{ settings.favicon | img_url: '32x32' }}" type="image/png" />
{% endif %}

<!-- Title and description ================================================== -->
<title>
{{ page_title }}{% if current_tags %}{% assign meta_tags = current_tags | join: ', ' %} &ndash; {{ 'general.meta.tags' | t: tags: meta_tags }}{% endif %}{% if current_page != 1 %} &ndash; {{ 'general.meta.page' | t: page: current_page }}{% endif %}{% unless page_title contains shop.name %} &ndash; {{ shop.name }}{% endunless %}
</title>

{% if page_description %}
<meta name="description" content="{{ page_description | escape }}">
{% endif %}

<!-- Helpers ================================================== -->
{% include 'social-meta-tags' %}
<link rel="canonical" href="{{ canonical_url }}">
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
<meta name="theme-color" content="{{ settings.color_primary }}">

<!-- CSS ================================================== -->
{{ 'timber.scss.css' | asset_url | stylesheet_tag }}
{{ 'theme.scss.css' | asset_url | stylesheet_tag }}

<!-- Sections ================================================== -->
<script>
window.theme = window.theme || {};
theme.strings = {
zoomClose: {{ "products.zoom.close" | t | json }},
zoomPrev: {{ "products.zoom.prev" | t | json }},
zoomNext: {{ "products.zoom.next" | t | json }},
moneyFormat: {{ shop.money_format | json }},
addressError: {{ 'home_page.map.address_error' | t | json }},
addressNoResults: {{ 'home_page.map.address_no_results' | t | json }},
addressQueryLimit: {{ 'home_page.map.address_query_limit_html' | t | json }},
authError: {{ 'home_page.map.auth_error_html' | t | json }},
cartEmpty: {{ 'cart.general.empty' | t | json }},
cartCookie: {{ 'cart.general.cookies_required' | t | json }},
cartSavings: {{ 'cart.general.savings_html' | t: savings: '[savings]' | json }},
productSlideLabel: {{ 'products.product.slide_label' | t: slide_number: '[slide_number]', slide_max: '[slide_max]' | json }}
};
theme.settings = {
cartType: {{ settings.cart_type | json }},
gridType: {{ settings.collection_products_grid | json }}
};
</script>

{{ 'jquery-2.2.3.min.js' | asset_url | script_tag }}

<script src="{{ 'lazysizes.min.js' | asset_url }}" async="async"></script>

<script src="{{ 'theme.js' | asset_url }}" defer="defer"></script>

<!-- Header hook for plugins ================================================== -->
{{ content_for_header }}
{%- render 'bold-common' -%}

{{ 'modernizr.min.js' | asset_url | script_tag }}

{% comment %}
If you store has customer accounts disabled, you can remove the following JS file
{% endcomment %}
{% if request.page_type contains 'customers/' %}
{{ 'shopify_common.js' | shopify_asset_url | script_tag }}
{% endif %}


{% include 'judgeme_core' %}
</head>

{% comment %}
Add the page template as a class for easy page or template specific styling.
{% endcomment %}
<body id="{{ page_title | handle }}" class="{% if customer %}customer-logged-in {% endif %}template-{{ request.page_type | handle }}">

{% section 'header' %}

<div id="CartDrawer" class="drawer drawer--right drawer--has-fixed-footer">
<div class="drawer__fixed-header">
<div class="drawer__header">
<div class="drawer__title">{{ 'cart.general.title' | t }}</div>
<div class="drawer__close">
<button type="button" class="icon-fallback-text drawer__close-button js-drawer-close">
<span class="icon icon-x" aria-hidden="true"></span>
<span class="fallback-text">{{ 'cart.general.close_cart' | t }}</span>
</button>
</div>
</div>
</div>
<div class="drawer__inner">
<div id="CartContainer" class="drawer__cart"></div>
</div>
</div>

<div id="PageContainer" class="page-container">
<main class="main-content" role="main">
{% unless request.page_type == "index" %}
<div class="wrapper">
{% endunless %}
{{ content_for_layout }}
{% unless request.page_type == "index" %}
</div>
{% endunless %}
</main>

<hr class="hr--large">

{% section 'footer' %}

</div>

{% comment %}
Template-specific js
{% endcomment %}
<script>
{% if resetPassword %}
$(function() {
timber.initCache();
timber.resetPasswordSuccess();
});
{% endif %}
</script>

{% comment %}
Ajaxify your cart with this plugin.
Documentation:
- http://shopify.com/timber#ajax-cart
{% endcomment %}
{% if settings.cart_type == 'drawer' %}
{% include 'ajax-cart-template' %}
{% endif %}

{% if request.page_type == 'product' or request.page_type == 'index' %}
<script>
// Override default values of shop.strings for each template.
// Alternate product templates can change values of
// add to cart button, sold out, and unavailable states here.
theme.productStrings = {
addToCart: {{ 'products.product.add_to_cart' | t | json }},
soldOut: {{ 'products.product.sold_out' | t | json }},
unavailable: {{ 'products.product.unavailable' | t | json }}
}
</script>
{% endif %}

<div id="SearchModal" class="mfp-hide">
{% include 'search-bar', search_btn_style: 'btn', search_bar_location: 'search-bar--modal' %}
</div>
<ul hidden>
<li id="a11y-refresh-page-message">{{ 'general.accessibility.refresh_page' | t }}</li>
<li id="a11y-selection-message">{{ 'general.accessibility.selection_help' | t }}</li>
<li id="a11y-slideshow-info">{{ 'home_page.slideshow.navigation_instructions' | t }}</li>
</ul>
{%- render 'bold-currency-converter' -%}
</body>
</html>

0 Likes