Copy Section Settings to Another Theme by Editing Code
Use this page when you want a section, with the settings you already made, on a different theme (for example the copy Shopify created when you updated your theme) and you want to do it by hand in the code editor.
Two easier routes cover most cases, so check them first:
- Same theme, different page: right-click Copy and Paste in the theme editor. See Copy a Section to Another Page.
- Different theme, no code: Theme Migrator moves your Section Store sections with their settings.
Manual method (code editor)
A section's settings live in the template file of the page it sits on. You copy that block from the old theme and paste it into the same template on the new theme.
- Add the section to the new theme from the app first (My Sections, Add to theme). Without the section file in the new theme, the pasted settings have nothing to render.
- Open the old theme's code editor and find the template the section is on, for example
templates/index.jsonfor the home page. - Search for
ss_to find the section, then copy its whole settings block. - Open the same template in the new theme's code editor and paste the block inside
sections, keeping the JSON valid. - Add the section's id to the template's
orderlist, then save.
The video uses our demo store. The steps are the same on your theme.
If editing code is not comfortable, use Theme Migrator instead, or ask a developer to do this one step.
Related
- Theme Migrator
- Copy a Section to Another Page (Same Theme)
- My Section Disappeared After a Theme Update or Switch
- Add Purchased Section To Theme
Related articles
- Theme Migrator
- Copy a Section to Another Page (Same Theme)
- My Section Disappeared After a Theme Update or Switch
- Add Purchased Section To Theme
Also searched as: copy section to another theme, copy to new theme, move section to new theme, transfer section to new theme, updated theme, theme update, updated my theme, new theme version, theme copy, duplicate theme, copy settings between themes, keep settings new theme, settings lost after update, section settings, template json, json template, index.json, product.json, edit code, edit theme code, code editor, copy code, copy template code, theme code copy, manual copy, without theme migrator, migrator not working, migrator missing pages, developer help, need a developer, copy section code, section not in new theme, rebuild section new theme, do i have to redo, ss_ prefix, section id, order list, json error, invalid json, move customizations, carry over settings, old theme to new theme, copy between themes, migrate section, video guide
Did this answer your question?