App reviews, troubleshooting, and recommendations
I see some similar questions from years ago without answers, so I figured I'd start a new discussion.
Is it possible to add a custom App Block from a Theme Extension to the header in a Shopify store? e.g. next to the search and cart buttons. Even when I target `"templates": ["*"]` in my schema, the app block doesn't appear as an option in the dropdown.
Solved! Go to the solution
This is an accepted solution.
We figured it out: I was missing "groups": ["header"] in my "enabled_on" schema.
Hi @PatrickSon 👋
Check if the relevant sections have app blocks in the schema
https://shopify.dev/docs/storefronts/themes/architecture/sections/section-schema#blocks
A theme has to be made to accept app-blocks in it's schema of any relevant sections, such as a header; not to be confused with a header-group that in turn contains sections with it's sections attribute.
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
I did see that `header.liquid` does have
"blocks": [
{
"type": "@app"
}
]
And it does appear to iterate over blocks above, so I'm wondering why my app block doesn't appear as an option in the theme editor.
This is an accepted solution.
We figured it out: I was missing "groups": ["header"] in my "enabled_on" schema.
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024