Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

How do I make block configurable in theme editor?

How do I make block configurable in theme editor?

Moonloon
Shopify Partner
9 0 1

I have a block in my app. That would show a popup after button is clicked.

This popup has 2 views:

- standard for browsers that support some features and a

- fallback one.

 

I want to make it easier to configure, so merchants can see and configure both views.

 

I planned to do this configuration right in theme editor so it is seen as it would look in the store. But I have a dilemma of how to design configuration of block.

 

I want merchant to be able to configure fallback version even if they use modern browser.

 

Replies 4 (4)

Sonya_2025
Shopify Partner
346 37 60

Hi @Moonloon 

You can add block settings by setting up schema in your block. Pls refer to this

 

Hope this helps

Please let me know if it works by giving it a Like or marking it as a solution!
Feel free to reach out.Get Shopify free trial 1$/mon
 EMAIL ME  Motivate me by  PAY ME
Moonloon
Shopify Partner
9 0 1

Unfortunately the block theme schema does not work with app blocks.

 

Also I want to trigger the preview of the block, but the preview depends on the browser capabilities.

Sonya_2025
Shopify Partner
346 37 60

I think schema works if you create theme extention in your custom app.

I have created a theme extension demo. I can add settings and configurable in the theme editors.

 

Below image is my app block settings

Sonya_2025_0-1725433017020.png

 

Please let me know if it works by giving it a Like or marking it as a solution!
Feel free to reach out.Get Shopify free trial 1$/mon
 EMAIL ME  Motivate me by  PAY ME
Moonloon
Shopify Partner
9 0 1

That is not exactly what I need. The schema extension is explicitly stated in documentation that it is not supported for app extensions 

https://shopify.dev/docs/storefronts/themes/architecture/settings/input-settings#color_schemeScreenshot 2024-09-07 at 7.46.38 PM.png