Shopify themes, liquid, logos, and UX
Greetings,
MAIN QUESTION:
DETAILS:
SCREEENSHOTS:
Any thoughts would be helpful.
Solved! Go to the solution
This is an accepted solution.
Go to Edit code > sections/dynamic-highlights-banner.liquid and remove the below mentioned code.
,
"disabled_on": {
"groups": ["*"]
}
Hey Draxx
To answer your main questions,
- First, you'll be creating your section, right? After creating your section, in order to add it into a part of your theme, you either need to add it via code via the templates of choice or via the theme editor. If you prefer adding the section via the theme editor, you'll need to modify your section's schema code to include "presets" attribute. Section schema (shopify.dev) - Presets. You don't necessarily allow parts of the theme to include a section, you allow that section to be part of a theme, if that makes sense. The next answer should shed light on what I meant.
- The part of code that controls which sections can or cannot be selected in a given part of the theme layout is the section schema, specifically the "enabled_on" or "disabled_on" part of section schema. Section schema (shopify.dev) - enabled_on
For adding a new section to your header, you'll want to read more about header groups or section groups in general. Section groups (shopify.dev)
Hope this helps! If you have any questions, feel free to let me know.
Hey Paul we meet again.
Thanks for this information. I will look into this now.
To your question... My plan was to take the pre-created "Highlight Banner" and make a duplicate with my custom changes.
Hello! I knew that name was familiar hahaha.
Ah okay! Well, Muhammad was able to answer it, so I guess that's that. Thank you, Muhammad!
I thought you needed the docs and weren't able to locate them. That should help you in the future whenever you'll need it.
This is an accepted solution.
Go to Edit code > sections/dynamic-highlights-banner.liquid and remove the below mentioned code.
,
"disabled_on": {
"groups": ["*"]
}
Hey Muhammad,
Thanks so much for chiming in. I will try this now.
Marking Muhammad's response as a solution since it directly answers my question.
For anyone who finds this thread also view Paul Martins above response since it provides more commentary and links to docs.
@draxx-life24
You're welcome.
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