Is there any way to change element names in the page editor?

Is there any way to change element names in the page editor?

DoofusMcGee
Tourist
12 2 0

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". 

Reply 1 (1)

Transcy
Shopify Partner
285 19 85

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

Transcy - The #1 Translation and Currency Converter
- Was my answer helpful? Please hit Like or Mark it as solution!
- Get in touch with us: App Store | Blog