Logo gets super compressed on desktop

7core
New Member
6 0 0

I found this in a community forum and it finally worked. Thanks.

1. Go to Online Store->Theme->Edit code
2. Asset->Add new asset (as logo.svg)

 

then go to header.liquid

search below 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">

Replace with this

<img src="{{ 'logo.svg' | asset_url }}"  alt="{{ shop.name }}" itemprop="logo"> 

 

0 Likes