How can I fix the HTML error found in my code?

{%- capture seo_page_title -%}
{%- if request.page_type == ‘search’ and search.terms != blank -%}
{{ search.terms | split: ’ AND ’ | last | split: ‘product_type:’ | last }} - {{ shop.name }}
{%- else -%}
{{ page_title }}{% if current_tags %}{% assign meta_tags = current_tags | join: ', ’ %} – {{ ‘general.meta.tags’ | t: tags: meta_tags }}{% endif %}{% if current_page != 1 %} – {{ ‘general.meta.page’ | t: page: current_page }}{% endif %}
{%- endif -%}
{%- endcapture -%}

{{- seo_page_title -}}

{%- if page_description -%}

{%- endif -%}

{%- if settings.favicon -%}

{%- endif -%}

{%- comment -%}Few prefech to increase performance on commonly used third-parties{%- endcomment -%}

{% render ‘social-meta-tags’ %}
{% render ‘css-variables’ %}

{{ content_for_header }}

{% render ‘microdata-schema’ %}

{%- if request.page_type == ‘customers/addresses’ -%}

{%- endif -%}

{%- if request.page_type != ‘cart’ -%}

{%- endif -%}
{% include ‘judgeme_core’ %}

{{ 'general.accessibility.skip_to_content' | t }}

{% section ‘announcement-bar’ %}

{%- unless request.page_type == ‘cart’ -%}
{%- comment -%}As required by Shopify rules, popup must be removed on cart page to remove distraction{%- endcomment -%}
{% section ‘popups’ %}
{%- endunless -%}

{% section ‘header’ %}

{{ content_for_layout }}

{%- if request.page_type == ‘blog’ or request.page_type == ‘article’ or request.page_type == ‘page’ -%}
{% section ‘static-newsletter’ %}
{%- endif -%}

{% section ‘text-with-icons’ %}
{% section ‘footer’ %}

  • {{ 'general.accessibility.new_window' | t }}

@Rey_Perez can you please share your store URL error screenshot

HTML error found

Broken HTML has been detected in your theme’s sections/featured-product.liquid file. Check that there are no missing or extra HTML tags present.
If you haven’t made changes to this code, contact support for help resolving the issue.

1 Like

{%- capture seo_page_title -%}
{%- if request.page_type == ‘search’ and search.terms != blank -%}
{{ search.terms | split: ’ AND ’ | last | split: ‘product_type:’ | last }} - {{ shop.name }}
{%- else -%}
{{ page_title }}{% if current_tags %}{% assign meta_tags = current_tags | join: ', ’ %} – {{ ‘general.meta.tags’ | t: tags: meta_tags }}{% endif %}{% if current_page != 1 %} – {{ ‘general.meta.page’ | t: page: current_page }}{% endif %}
{%- endif -%}
{%- endcapture -%}

{{- seo_page_title -}}

{%- if page_description -%}

{%- endif -%}

{%- if settings.favicon -%}

{%- endif -%}

{%- comment -%}Few prefech to increase performance on commonly used third-parties{%- endcomment -%}

{% render ‘social-meta-tags’ %}
{% render ‘css-variables’ %}

{{ content_for_header }}

{% render ‘microdata-schema’ %}

{%- if request.page_type == ‘customers/addresses’ -%}

{%- endif -%}

{%- if request.page_type != ‘cart’ -%}

{%- endif -%}
{% include ‘judgeme_core’ %}

{{ 'general.accessibility.skip_to_content' | t }}

{% section ‘announcement-bar’ %}

{%- unless request.page_type == ‘cart’ -%}
{%- comment -%}As required by Shopify rules, popup must be removed on cart page to remove distraction{%- endcomment -%}
{% section ‘popups’ %}
{%- endunless -%}

{% section ‘header’ %}

{{ content_for_layout }}

{%- if request.page_type == ‘blog’ or request.page_type == ‘article’ or request.page_type == ‘page’ -%}
{% section ‘static-newsletter’ %}
{%- endif -%}

{% section ‘text-with-icons’ %}
{% section ‘footer’ %}

  • {{ 'general.accessibility.new_window' | t }}

@Rey_Perez I can see your post that you sharing code with me that was layout/theme.liquid

and you mentioning the error file wrong.

I will suggest editing your theme code- and get original code restore it