Create child theme

ps_create_child_theme

Write · preview + approveBlock 3 · Appearance & deployments (service connector, off by default)Service connector onlyBlock off after install

Creates a child theme that holds your changes, so theme updates don't wipe them.

Ask Claude

„Before we change the theme, set up a child theme so the next theme update doesn't wipe our edits.”

Example preview

New child theme "classic-child" with parent "classic". Files to create: config/theme.yml, assets/css/custom.css.

Technical details

Creates a child theme of the current theme, so your own changes live in the child and the parent theme can be updated without losing them. Service connector only (allowlisted IP addresses).

Parameters

Parameter names are not confirmed in module 0.3.0 yet and may change.

NameTypeRequiredDescription
namestringnoName of the child theme.
shop_idintegernoShop ID in a multistore installation. Defaults to the shop in the connector address. IDs are listed by ps_get_shop_info.
confirmbooleannofalse (default) returns a preview and saves nothing. true executes, only after the user approved the preview, together with change_token.
change_tokenstringwhen: confirm=trueToken from the preview. Required with confirm=true. Valid 30 minutes, single use, bound to the previewed arguments and data state.

Limits

Check the result with ps_inspect_page.

What you see before anything is saved

Claude first calls the tool without confirming it. The module returns a preview (current and new values) and a single-use token valid for 30 minutes. Claude shows you the preview and saves the change only after your yes.

Related tools

Last updated: 2026-10-03