Guide: How to Use Shopify Magic to Generate New Theme Blocks for Testing
Last updated
Was this helpful?
Last updated
Was this helpful?
Shopify’s AI-powered theme block generator is a fast and intuitive way to create new, customizable content blocks for your storefront — no coding required. Combined with Shoplift’s template testing capabilities, this becomes a powerful way to rapidly build and test new experiences before rolling them out broadly.
This guide walks you through how to use Shopify Magic to generate new blocks, and how to quickly set them up in Shoplift for testing.
Log into Shoplift and click Create Test.
On the Test Draft page, select Test a template and select the template you want to test from the drawer. This will be your Original (A).
Now create a variant. This will be the template that you generate a new theme block for. You can either duplicate your Original (A), or select an existing template from your theme to create your Variant (B).
Once you have a Variant (B) set in the draft, click Edit in Shopify to navigate to the theme editor and make changes to your variant template.
In the Shopify Theme Editor, confirm you are on your variant template by referencing the template drop-down menu in the top navigation.
Click the section you want to generate a new block for.
Click Add Block.
Click Generate.
Enter a prompt for the type of block that you want to generate. The more clear you are with your instructions, the better the result will be. For example: "Create a product grid section with cards that display a drop shadow and slightly elevate when hovered over. Each card should contain the product image, title, price, and an add to cart button."
Submit your prompt, and Shopify Magic will begin to generate your new theme block. You can follow along as it generates new liquid code for your theme in realtime.
When your new block is finished generating, add content and adjust the styling as you see fit. You can also continue to play with Follow up instructions to continue to tweak your new block.
Once your variant is ready for testing, return to Shoplift and configure the rest of your test settings, including device targeting, visitor targeting, and any custom audiences.
When everything looks good, click "Launch now". Or, if you want to schedule your launch for later, click the Schedule test button to set a schedule for an automated start and end time.
Using Shopify Magic to build new blocks allows for rapid experimentation without engineering involvement. With Shoplift, you can confidently test these new experiences and make data-backed decisions on what drives real impact.
This combo is perfect for:
Testing promotional banners
Creating custom product highlights
Trying new layouts for upsells or bundles
Adding content blocks for education or storytelling
Can I edit the block code after using Shopify Magic?
Yes. Generated blocks are added as editable Liquid sections. You can customize them like any other block.
What if my theme doesn’t support Shopify Magic?
Shopify Magic block generation is only available in 2.0 themes. Consider upgrading your theme if you don’t see the options to generate blocks with Shopify Magic.
To learn more about how to generate new theme blocks with Shopify Magic, check out Shopify's guide .