Hi there.
I’m trying to display a video on the page, and for some reason, the video displays "> on the page and can’t figure out why.
Any help?
{% if section.settings.video_url != blank %}
{% endif %}
A user is troubleshooting a video display issue where the video won’t render properly on their page.
Initial Problem:
Troubleshooting Steps:
<source> tagCurrent Status:
<video> tag structure with proper video_tag filter syntaxNote: Much of the code in the thread appears reversed/corrupted, suggesting potential encoding or formatting problems in the original post.
Hi there.
I’m trying to display a video on the page, and for some reason, the video displays "> on the page and can’t figure out why.
Any help?
{% if section.settings.video_url != blank %}
{% endif %}
The closing “/” was missing from the source tag.
Corrected code:
{% if section.settings.video_url != blank %}
{% endif %}
Thanks Bhaskar, good pick.
However, it’s still displaying like this:
The entire section code, excluding {% schema %} is:
{%- capture content -%}
{%- if section.settings.subheading != blank -%}
{{ section.settings.subheading | escape }}
{%- endif -%}
{%- if section.settings.title != blank -%}
##
{%- render 'styled-text', content: section.settings.title, text_color: section.settings.heading_color, gradient: section.settings.heading_gradient -%}
{%- endif -%}
{{- section.settings.content -}}
{% if section.settings.video_url != blank %}
{% endif %}
{%- endcapture -%}
{%- capture subcontent -%}
{%- if section.settings.team_avatar != blank or section.settings.support_hours != blank or section.settings.answer_time != blank -%}
{%- if section.settings.team_avatar != blank -%}
{%- capture sizes -%}{{ section.settings.team_avatar_width }}px{%- endcapture -%}
{%- capture widths -%}{{ section.settings.team_avatar_width }}, {{ section.settings.team_avatar_width | times: 2 | at_most: section.settings.team_avatar.width }}{%- endcapture -%}
{%- capture style -%}max-width: {{ section.settings.team_avatar_width }}px{%- endcapture -%}
{{- section.settings.team_avatar | image_url: width: section.settings.team_avatar.width | image_tag: loading: 'lazy', style: style, sizes: sizes, widths: widths -}}
{%- endif -%}
{%- if section.settings.support_hours != blank or section.settings.answer_time != blank -%}
{{- section.settings.support_hours -}}
{%- if section.settings.answer_time != blank -%}
{{ section.settings.answer_time }}
{%- endif -%}
{%- endif -%}
{%- endif -%}
{%- if section.settings.button_text != blank -%}
{% render 'button', content: section.settings.button_text, href: section.settings.button_url, size: 'xl', background: section.settings.button_background, text_color: section.settings.button_text_color %}
{%- endif -%}
{%- endcapture -%}
{%- if content != blank or subcontent != blank -%}
{%- if content != blank -%}
{{- content -}}
{%- endif -%}
{%- if text_position != 'center' and subcontent != blank -%}
{{- subcontent -}}
{%- endif -%}
{%- endif -%}
{%- if section.blocks.size > 0 -%}
{%- for block in section.blocks -%}
{%- if block.settings.content != blank or block.settings.liquid != blank -%}
{%- capture accordion_content -%}
{{ block.settings.content }}{{ block.settings.liquid }}
{%- endcapture -%}
{%- render 'accordion', title: block.settings.title, content: accordion_content, block: block -%}
{%- endif -%}
{%- endfor -%}
{%- endif -%}
{{- subcontent -}}
Hi @alex-mm Can you please try this once
{% if section.settings.video_url != blank %}
{% endif %}
Also share the store URL if the error persists.