Created
September 8, 2021 11:27
-
-
Save bilalnaseer/7c47010ade89ffc6a9bdc0862c96b38f to your computer and use it in GitHub Desktop.
Shopify Add SVG Logo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="{{ routes.root_url }}" class="site-header__logo-image{% if section.settings.align_logo == 'center' %} site-header__logo-image--centered{% endif %}"> | |
{% capture image_size %}{{ section.settings.logo_max_width | escape }}{% endcapture %} | |
<img src="{{ 'logo.svg' | asset_url }}" | |
alt="{{ shop.name }}" | |
style="max-width: {{ image_size }}px;"> | |
</a> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make sure the SVG logo which you uploaded has the same file name as the above code "logo.svg". Otherwise, you will have to change filename in code as well - line number 3