I currently use the image-banner section and have some conditional logic to say that if an image metafield is blank then don’t display the section. However, I now need to display the image-banner section independently to this rule. Is there a way to duplicate the section itself so that in the customise view it appears as a new section ‘image-banner-no-metafield’ for instance?
Topic summary
Need to display an Image Banner independently of existing logic that hides the section when an image metafield is empty. Seeks a separate, customizable section (e.g., “image-banner-no-metafield”) in the theme editor.
Proposed solution:
- In the theme editor, use Add section to insert another Image banner section. This creates a second instance that can be configured separately from the original.
- Copy or adapt code/settings from the existing Image Banner into the new instance to avoid the metafield-based condition.
Clarifications:
- In Shopify, a metafield is an extra data field; a section is a customizable content block in the theme.
Outcome/status:
- A straightforward method was suggested; the requester has not confirmed resolution. No images, videos, or code snippets are central to understanding the discussion.
Hi @Gumf ,
I understood that you need to duplicate Image Banner Section.
For that you can do “Add Section” and add the “Image Banner Section” section again.
This is duplicate the “Image Banner Section” section and you can add the desired code from the existing section on this new section.
Hope this helped.
Thanks