{%- if dataToShow.HOW_TO_CONTENT -%}

How to

{%- if site.ezoicAds -%}
{%- endif -%}
{%- if dataToShow.HOW_TO_CONTENT.YoutubeVideoUrl.size > 0 -%}
{% assign video_url = dataToShow.HOW_TO_CONTENT.YoutubeVideoUrl %} {% assign video_id = "" %} {% if video_url contains "youtu.be/" %} {% assign parts = video_url | split: "/" %} {% assign video_id = parts[3] %} {% elsif video_url contains "youtube.com/watch" %} {% assign params = video_url | split: "?" | last | split: "&" %} {% for param in params %} {% if param contains "v=" %} {% assign video_id = param | split: "=" | last %} {% endif %} {% endfor %} {% endif %} {%- if site.ezoicAds -%} {%- else -%} {%- endif -%}
{%- else -%}
{{dataToShow.HOW_TO_CONTENT.logoImageAlt | default: 'how to image' }}
{%- endif -%}

{{dataToShow.HOW_TO_CONTENT.heading | replace: "$variable", page.value}}

    {% for data in dataToShow.HOW_TO_CONTENT.steps %}
  1. {{forloop.index}}.{{data | replace: "$variable", page.value}}
  2. {% endfor %}
{%- if site.ezoicAds -%}
{%- endif -%}
{%- endif -%}