What should you do when seeing the “Template content exceeds 256KB limit” notice?

Author: Anna Nguyen 472 views

When saving or publishing your page, you may see a message “Template content exceeds 256KB limit” like the below image.

While EComposer is super flexible, we still need to abide by Shopify’s rules regarding themes and templates. One of those requirements is that template files in themes are less than 256KB in size. When building a page you might exceed that limit in a few ways. But in general, it is probably because there are too many elements on the page or you are using big chunks of code in custom code blocks.

One of the reasons is that your page content contains too many elements on it. Each of our elements will be made up of a certain amount of HTML code. For example, you added so many Product grid elements on your page, and this section contains so much HTML code. You should use 2 to 3 Product grid elements on a page only. To solve the issue, please try to remove them one by one until you can save the page successfully.

Also, when you copy content from somewhere else and paste it into our app, you accidentally copy the HTML code of that content. The way to solve this problem is when pasting content, please use the key combination ⌘ + shift + v to paste text only instead of using ⌘ + v

If you can not solve it yourself, don’t hesitate to get in touch with us via live chat, and we will help you check and solve the problem.

1 Comment

  • john

    December 15, 2022

    Keep reminding me “Template content exceeds 256KB limit”, can you help solve it

    Reply

Leave a Comment

Start a free trial and enjoy 3 months of Shopify for $1/month on select plans.