Shopify themes, liquid, logos, and UX
I started work on a site and I'm finding it really challenging to update because there are dozens of elements with generic names. For instance, I have a section called "Big Banners" and under it there are 8 elements, all called "Banner".
Is there any way to rename these? It would be SUPER helpful if they could have meaningful names like "Cheesecake Banner" or "4th Of July Banner".
Hello @DoofusMcGee ,
You can try to follow these steps:
Go to Online Store -> Themes -> Actions -> Edit code
Go to Sections -> big-banners.liquid file
Modify the code within the loop to update the names of the banners like this:
{% for banner in section.blocks %}
{% assign banner_name = banner.settings.banner_name %}
<!-- Use the banner_name variable to customize the banner output -->
<div class="banner">
<h2>{{ banner_name }}</h2>
<!-- Rest of the banner content -->
</div>
{% endfor %}
Save changes
Hope this can help.
Transcy
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024