Hello,
I am in the process of redoing my website using a new theme, and I cannot figure out how to add an SVG Logo. I have been able to do this for every other theme; however, I cannot figure out how to do this with the new code.
Previously I would put this code:
img data-src="{{ 'logo.svg' | asset_url }}"
Below is the code for my theme that I cannot figure out:
{%- capture logo_content -%}
{%- if section.settings.logo -%}
{%- capture sizes -%}{{ section.settings.logo_max_width }}px{%- endcapture -%}
{%- capture widths -%}{{ section.settings.logo_max_width }}, {{ section.settings.logo_max_width | times: 2 | at_most: section.settings.logo.width }}{%- endcapture -%}
{{ shop.name }}
{{- section.settings.logo | image_url: width: section.settings.logo.width | image_tag: sizes: sizes, widths: widths, class: 'header__logo-image' -}}
{%- if section.settings.transparent_logo -%}
{{- section.settings.transparent_logo | image_url: width: section.settings.transparent_logo.width | image_tag: sizes: sizes, widths: widths, class: 'header__logo-image header__logo-image--transparent' -}}
{%- endif -%}