Shopify themes, liquid, logos, and UX
Hi! Hope you can help me. I have asked this question few days ago so maybe see previous post to see what have been tried. But my issue is that there seems to be no way for my logo to be left to my store name (wich is not include in my logo).
Hello @Purrfectly
Shopify provides feature to add logo. You just have to assign the img from there. And will need to modify the code to show the Store name beside logo.
Follow the steps
1) Go the Customize option
2) Click on header and then click on theme settings
3) There you will find an option for Logo. Just add the image there
4) Next click on Edit code and open the header.liquid file
5) Search for 'header__heading' and replace the code with existing code
<a href="{{ routes.root_url }}" class="header__heading-link link link--text focus-inset">
{%- if settings.logo != blank -%}
<div class="header__heading-logo-wrapper">
{%- assign logo_alt = settings.logo.alt | default: shop.name | escape -%}
{%- assign logo_height = settings.logo_width | divided_by: settings.logo.aspect_ratio -%}
{% capture sizes %}(max-width: {{ settings.logo_width | times: 2 }}px) 50vw, {{ settings.logo_width }}px{% endcapture %}
{% capture widths %}{{ settings.logo_width }}, {{ settings.logo_width | times: 1.5 | round }}, {{ settings.logo_width | times: 2 }}{% endcapture %}
{{ settings.logo | image_url: width: 600 | image_tag:
class: 'header__heading-logo motion-reduce',
widths: widths,
height: logo_height,
width: settings.logo_width,
alt: logo_alt,
sizes: sizes,
preload: true
}}
</div>
{%- endif -%}
<span class="h2">{{ shop.name }}</span>
</a>
Final output will like this
I hope this solution meets our needs.
Thank you!!
It worked!!!! 😄
The only thing is that now they appear on top of the other like on the picture linked. Is there a way to put the logo at the left and the name at its right next to it?
Sure, You can display the text beside the logo.
just add the below css in 'base.css' file located in asset folder
h1.header__heading {
width: 230px;
}
.header__heading-link {
display: flex;
align-items: center;
column-gap: 6px;
}
.header__heading-logo-wrapper {
flex: 0 0 80px;
}
I hope this helps! If it does, please like it and mark it as a solution!
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025