Max_blocks limit counts static blocks

Hello everyone, Can anyone explain why I reached the limit of 50 blocks when I only have 11 FAQs containing 2 static blocks that should not be counted towards the limit according to the guide, and 1 text block? As a result, I get 44 blocks + 1 wrapper and 2 blocks for the header, and I can no longer insert the next block. , although there should be 22 blocks because static blocks should ignore the limits.

Is this some kind of error in the documentation, or am I inserting static blocks incorrectly?

Hello @MaksymKurniy Which theme are you using? If you can provide theme access i can try to fix.

Hi @MaksymKurniy , Please be aware that Shopify imposes a limit of 50 blocks per template. Once this limit is reached, you will no longer be able to add additional blocks to that specific page or template.

To work within this constraint, it’s recommended to optimize your code structure to reduce the overall block count.

One effective approach is to use presets and grouped block declarations. By defining blocks for a specific group, you can automatically include them when the group is used. You can then retain only the necessary blocks by removing the unused ones from the group, allowing for more efficient block management within the template.

Please let me know,

Hi Sayed_Safin,
yes, I know about the 50 block limit per section. But my question is why do static blocks affect this limit if the documentation about static blocks says that they should not do this, so either the documentation is lying, or I am doing something wrong, or this is a bug that needs to be fixed

It also says they can’t be removed or duplicated, so whatever you’re looking at doesn’t apply to reality.

You cannot delete them, but you can hide them, and you can copy them (I mean the block in which these static blocks are located).

Update for anyone that ends up here: The 50 block limit was removed, sections can have infinite blocks.

BUT there is a hard 512kb limit on the template JSON files. And when saving the template, it saves all fields that are default as well…