Can you lock section blocks to prevent rearranging?

dwightco
Excursionist
18 0 2

I would like to use blocks to organize settings in schema, but I'd like to prevent users from rearranging or adding to them.

Is that possible? How could it be done? 

Thanks!

dwightco_0-1625968619936.png

 

0 Likes
MarcoReleasit
Shopify Partner
59 6 9

Hey there!

By users did you mean Staff in your store?

If so, you can set permissions for each Staff account in your store by going to Settings -> Users and permissions 

You should make sure that the staff account does not have the Themes permission enabled so that they will not be able to edit the store theme

MarcoReleasit_0-1625987296079.png

Let me know if this answers your question!

0 Likes
dwightco
Excursionist
18 0 2

No, I mean for any user regardless of permission.

I don't see any documentation on how to do it like adding a block limit...I figured there should be a way to do it in the JSON schema.

0 Likes
MarcoReleasit
Shopify Partner
59 6 9

Ok got it, so you are essentially looking for a way to lock your current theme layout.

Currently there is no way to lock your theme layout but you can configure presets and defaults for sections and you can also restrict a section to a specific template (but blocks and sections will still be editable in the theme editor) you can find the docs here: https://shopify.dev/themes/architecture/sections/section-schema#app-block-schema

Let me know if this helps!

0 Likes