Block Numbers in settings_data.json + How to quickly add blocks

Topic summary

Main issue: Adding many blocks to a Shopify theme section by editing settings_data.json. Manually created block IDs (e.g., 10000001) did not show up on the storefront.

Key suggestion/update:

  • New blocks must also be listed in the section’s block_order array to appear. Add each new block’s ID to block_order alongside existing IDs.

Example (conceptual):

  • blocks: { “”: { … } }
  • block_order: [“existing-id-1”, “existing-id-2”, “”]

Current status/outcomes:

  • Approach to quickly add many blocks: create block objects in blocks and register all their IDs in block_order. No confirmation of success from the original poster yet.
  • Open question remains whether block ID values need a specific format or length; no definitive answer provided.

Notes:

  • The JSON snippet (blocks and block_order) is central to understanding the solution.
Summarized with AI on February 13. AI used: gpt-5.

Hi,

I’m trying to add more blocks into a section in my theme by way of editing the settings_data.json file.

What I notice when adding them is that the existing blocks have a number, as shown below. They seem rather random to me, with no order nor pattern.

So naturally, I attempted to add my own generic numbers to it, like 10000001, 10000002 etc, while maintaining the same json structure.

However, in doing so, the newly-added code in the json did not show up as blocks on my website. Can someone point out if adding blocks like this is possible? And what do the numbers mean, if they have any significance at all?

How else can I quickly add a large number of blocks without having to painstakingly do it in the theme editor?

      "foo": {
        "type": "bar",
        "blocks": {
          "1569140983252-1": {
            "type": "quote",
            "settings": {
              "image": "shopifybarbar"
             }
            },
        "1569307563367": {
            "type": "quote",
            "settings": {
              "image": "shopifyfoofoo"
            }
         },

...
1 Like

Hi,

I’m new to Shopify, but you can try my suggestion below, and hopefully it helps you.

I think adding blocks is possible ( i’ve done it ) but you will need to add you block numbers you created to the ‘block-order’, like the example below:

“new-blocks-section”: {

“type”: “new-blocks-template”,

“blocks”: {

--------all your blocks here -----------

},

“block_order”: [
“1569140983252-1”,
“1569307563367”,
],

Hope that works for you!

Thank you! Do you know if it matters what number we use for the blocks? Does it have to be a certain number of characters?