Busting Shopify's 100 Dynamic Source Limit: Keep Your Rich Product Content (No Redesign Needed!)
Ever hit that frustrating wall where you just can't add any more detailed information to your Shopify product pages? You're not alone. We recently saw a fantastic discussion in the Shopify community about this very issue, specifically around the "Surveillance" theme, but the solutions are universal!
A fellow store owner, user2096, ran into this exact headache. They were rebuilding their site, had over 40 product models, and each needed unique, detailed content – crucial for SEO, AEO, and GEO. But then, boom! They maxed out their product metafields and then hit the dreaded Shopify dynamic source limit of 100 when trying to connect those metafields to their theme. Their big concern? Not wanting to redesign their meticulously crafted product pages.
The Good News: It's a Theme Editor Limit, Not a Data Limit!
Here's the crucial insight that kicked off the discussion: the 100 dynamic source limit is a theme-editor limitation, not necessarily a limit on how much structured product data you can maintain. As one expert, ai-theme-code-editor, wisely put it, "you probably don’t need to abandon the detailed product content or cram everything into Shopify’s standard metafield/dynamic-source workflow."
This means your valuable, model-specific information is safe. The key is to change how your theme accesses that data, rather than trying to make your content generic. Don't compromise your SEO efforts by simplifying product descriptions just to stay under a theme editor limit!
The Core Solution: Direct Liquid Rendering with a Custom Liquid Section
This is where the community really shined. Ploqo, another incredibly helpful member, chimed in with a fantastic, practical workaround that directly addressed user2096's fear of redesigning. "You do not have to redesign anything," they stated, confirming that "Custom Liquid is additive. You keep every section and block you already built."
The trick? A single 'Custom Liquid' section. Instead of connecting each metafield individually as a dynamic source (which quickly eats up your 100-limit quota), you can print all your metafields directly using Liquid code within this one section. Liquid reads your metafields directly and, crucially, does not count against the 100 dynamic source limit. It's like having a direct line to your data, bypassing the theme editor's connection limitations.
How to Implement Custom Liquid to Bypass the Limit:
Here's a step-by-step guide based on Ploqo's clear instructions:
- Access Your Theme Editor: Go to your Shopify admin, then Online Store > Themes. Find your "Surveillance" theme (or whichever theme you're using) and click Customize.
- Open Your Product Template: In the theme editor, navigate to a product template where you want to display your detailed content.
- Add a Custom Liquid Section: Under the "Template" sections, click Add section. Scroll down and choose Custom liquid.
- Paste Your Liquid Code: In the "Custom liquid" box, you'll paste Liquid code that prints your metafields. Here's an example provided by
Ploqo:
Important: You'll need to swap{%- assign s = product.metafields.specs -%}{% if s.resolution != blank %}Resolution: {{ s.resolution }}
{% endif %} {% if s.field_of_view != blank %}Field of view: {{ s.field_of_view }}
{% endif %} {% if s.night_vision != blank %}Night vision: {{ s.night_vision }}
{% endif %}specsfor your actual metafield namespace (the first part of your metafield key, e.g.,product.metafields.your_namespace.your_key) and replaceresolution,field_of_view,night_visionwith your own metafield keys. Add one line for each field you want to display. - Save Your Changes: Click Save. You'll now see your detailed content rendered on the page, without using up dynamic sources!
What About Existing Blocks Like Collapsible Content?
user2096 specifically asked about existing collapsible content blocks. Ploqo had a great answer for this too: if a collapsible row only takes typed text or one connected metafield, you have a couple of options:
- Leave a Few Rows As They Are: If only a few collapsible rows are consuming dynamic sources, you might just leave them.
- Rebuild the Accordion in Custom Liquid: If these collapsible rows are the main culprits eating up your 100-limit, you can rebuild that entire accordion within your Custom Liquid section.
Ploqoeven shared an image of a native details accordion built this way, demonstrating zero dynamic sources. The browser's native collapsible elements can be styled to look and behave just like your theme's, maintaining your page design.
What if You've Maxed Out on Metafields Themselves? Enter Metaobjects!
user2096 also mentioned hitting the "maxed out product metafields" limit. If you're dealing with many related specifications or structured information that's shared across multiple models, Metaobjects are your secret weapon. Both ai-theme-code-editor and Ploqo highlighted this solution.
Instead of creating dozens of individual metafields for each product, you can group all those related fields into one Metaobject definition. Then, for each product, you simply create a single metafield that points to the relevant Metaobject entry. This drastically reduces the number of metafields directly attached to your products, making your data more organized and scalable.
You can find Metaobjects under Settings > Custom data > Metaobjects in your Shopify admin.
Other Smart Strategies to Consider
While Custom Liquid and Metaobjects are the main heavy-hitters here, ai-theme-code-editor also suggested some other architectural best practices that are worth keeping in mind for robust Shopify development:
- Metafield Namespaces/Groups: Even without Metaobjects, organizing your metafields into logical namespaces helps keep things tidy.
- Conditional Sections: Only render a specification or content block when that product actually has data for it. This keeps your page clean and efficient.
- JSON-LD/Schema: Ensure important structured product information is available in the actual page output, which is fantastic for SEO and search engine understanding.
The bottom line from this community discussion is clear: you absolutely can maintain rich, detailed, and unique product content for all your models on Shopify, even with themes like Surveillance, without hitting frustrating theme editor limits or resorting to a full redesign. It's all about understanding Shopify's underlying architecture and using powerful tools like Custom Liquid and Metaobjects strategically. Dive in and make those product pages sing!