SVG file to Shopify Debut theme

New Member
2 0 0

Hi, I have added my logo.svg file to assets folder and I have followed the directions of the posts I could find on it in the forum however I am unable to link the svg file to the logo header.

This is the code:

<img src="{{ section.settings.logo | img_url: image_size }}"
                     srcset="{{ section.settings.logo | img_url: image_size }} 1x, {{ section.settings.logo | img_url: image_size, scale: 2 }} 2x"
                     alt="{{ section.settings.logo.alt | default: shop.name }}"
                     itemprop="logo"
                     style="max-width: {{ section.settings.logo_max_width }}px;">

Thanks!

 

0 Likes
Highlighted
Shopify Expert
27 0 14

The code you pasted is looking for the file to be attached to the settings. I assume the 'section' being referenced is the Header. Is there an image upload for 'logo' under Sections 'header' in your theme editor?

 

0 Likes
New Member
2 0 0

Yes the section is the Header and there is an image already uploaded for logo in the theme editor for header..what would be the next step in this case? Thanks Dualsided

0 Likes