Shopify themes, liquid, logos, and UX
Right now I have a drop down menu linking to multiple collections, as well as one page. The collections all show an image but the page link is empty. Is it possible to add an image to this? https://www.craftsmadebyyou.com/
You can find the header file and search navigation code. You should paste below code:
{% assign collection = collections[sub_link.handle] %}
{% if collection and collection.image and collection.image.src != blank %}
<img src="{{ collection.image | img_url: 'master' }}" alt="{{ collection.title }}" class="menu-image" />
{% endif %}
You can replace sub_link with link if you are adding image on main menu. If you have sub menu then above code don't need any change.
Thanks....
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025