Before creating a child theme, finish this sentence: “When someone updates the parent theme, we need to keep our change to ___.” A link colour, a special event template and an order export belong in different places. Creating a theme to hold a business integration makes future redesigns more expensive. Editing the parent theme directly makes the next update particularly exciting for the wrong reasons.
A child theme inherits its parent’s behaviour and can supply selected overrides. Its value is the ability to maintain a small, identifiable difference while continuing to receive upstream changes. Every full template you copy becomes a file that someone must review after the parent changes. WordPress child themes
Find the owner of the change
| What the business is asking for | Examine first | When a child theme becomes useful |
|---|---|---|
| Different button colours on all pages | Theme Styles, palette or supported CSS settings | A maintained collection of file-based design changes must travel between environments |
| A different order of blocks on one page | That page in the editor | The layout has to become an inherited template used across future pages |
| A shared layout for event details | Existing block template, pattern or theme hook | You need a versioned template the parent does not supply |
| Record all bookings in a CRM | Booking extension or site-specific integration | Usually the wrong home; the business function must survive a theme change |
Ask whether the request concerns content, presentation or behaviour. A presenter’s name is content. The placement of the presenter beside the session time is presentation. Sending the presenter a booking notification is behaviour. A single project can contain all three, and one solution does not have to own the whole project.
Identify the active theme and its parent in the installation you are changing. Check whether the site uses a classic theme, a block theme or a page builder with its own template system. In a block theme, a change saved through the Site Editor can live in the database. In a builder, the visible page may come from a builder template. Know which system generates the element before creating a file that WordPress will never select.
Follow a small example
Imagine a community theatre that wants a special layout for performance pages. The ordinary article template works; the theatre only needs performance dates grouped under the booking link. First try a page pattern with the existing controls. If editors need independent one-off pages, a pattern plus a short editing note may solve the problem. Choosing blocks and patterns for a landing page
If the theatre wants a maintained template that every future performance page can inherit, a developer can prepare a child theme in staging. The child lives in its own directory under wp-content/themes/. Its style.css identifies the theme and the exact parent directory. For a fictional parent directory named playhouse, the minimum identification would look like this:
/*
Theme Name: Playhouse Child
Template: playhouse
*/
The Template field is the parent folder name, including its exact spelling. It is not the display name in Appearance. Keep the parent installed, preserve the original active theme and make a restorable staging snapshot before switching. The example header identifies the relationship; it does not implement the theatre’s layout.
Add only the override you need in the appropriate location for this parent. A classic theme may choose PHP templates through the template hierarchy. A block theme can provide HTML templates under templates/ and reusable template parts under parts/. Match the parent’s actual selection and file naming rather than copying every template into the child. If the theme supplies a documented hook or a setting that accomplishes the same change, consider that smaller maintenance surface.
Why a correct file can appear to do nothing
For block templates WordPress can select a user-customised version stored in the database before checking the child and parent theme files. An editor who saved an earlier version in the Site Editor may still be seeing that version, even when the new file is deployed correctly. Check the template assigned to the page and the template’s customisation state. Block template hierarchy
On staging, preserve the customised version before trying any reset. Compare its content with the proposed file and identify which edits the theatre still needs. Reverting a template to the theme default can discard legitimate editor work in that template. If only the performance page needs to differ, create or assign the intended dedicated template rather than resetting the shared default for every page.
A stylesheet can also fail quietly. The presence of style.css does not guarantee the parent loads the child’s stylesheet in the order you expect. Inspect the parent’s documented asset-loading method and the page’s actual stylesheets. Some parents already enqueue both; others use a different stylesheet or rely heavily on block styles. Avoid pasting a generic enqueue snippet that loads the parent twice. Check the winning rule in the browser and verify that its scope is a performance page, a shared component or the whole site as intended.
The child’s functions.php is different from a template override. Both child and parent functions files can run. Copying the entire parent file into the child can redeclare functions or execute registration code twice. Add only the small theme-specific extension you need. Keep durable site behaviour such as customer access decisions and order integrations in an appropriate plugin or service.
Make the performance template usable by a real editor
For the theatre, first decide whether every performance is an ordinary page assigned the new template or a distinct content type with its own template hierarchy. The difference matters at handover. For ordinary pages, an editor needs to choose the template and fill in the agreed information. For a custom performance type, its plugin may own the fields, archive and single view. Look up that plugin's template guidance before changing the theme. Otherwise the next parent update or plugin update can appear to “undo” work that never owned the page in the first place.
Start with one performance already published on staging and one new performance. On the existing entry, identify what the page body stores: title, introduction, booking link, date, cast list and venue information. If each performance has a different date, keep the date in a per-performance field or page block. Hard-coding the first performance's date in the child template makes the next performance inherit the wrong date. Conversely, putting the venue's permanent access information into 40 individual pages means an entrance change requires 40 edits. Assign each value to the place whose lifespan matches it.
For a block-theme example, use List View to identify the post title, main content and any shared template parts. Ensure the template leaves a place for the editor's page content. A beautiful layout that forgets to render the post content leaves existing accessibility notes and cancellation details saved in the database but invisible to new visitors. Equally, adding a manual title in the content while keeping a template title can produce two identical large headings. Inspect the real output and compare the landmarks and heading order on both the old and newly created performance.
Try three awkward entries before approving the design. Give one performance a long translated title that wraps, one an unusually early start time and one no promotional image. Check that the start time remains near the booking link, that an empty image does not create a blank half-screen and that the link still makes sense to someone arriving directly from a shared URL. Try the page at a narrow viewport and increase the browser text size. These tests investigate the structure the parent and child control together.
Use a short change description a second developer can review without the theatre meeting notes. For example, “Performance pages display the session time above the booking control; regular news posts keep the parent layout. The current session value remains editable per performance.” Include the exact page that exercises the intended case and the nearby page that should continue to inherit the parent. An unfamiliar maintainer can now tell whether a future simplification preserves the purpose of the override.
Keep review and production configuration in agreement
A common surprise is that the child theme behaves as expected on the developer's copy and differently on the editor's staging copy. Compare the active child and parent versions, the actual theme directory and the page's assigned template. Then inspect whether an editor saved a more specific template in that database or the builder has a display rule that catches this content type first. Two installations with identical theme files can still have different saved style and template choices.
Change one layer at a time. If a saved template contains desirable local edits, export or otherwise preserve it through the site's normal workflow, review the differences and decide which belong in the versioned file. Involve the editor who owns the local changes before removing them. Prefer a deliberate choice, such as “the template structure comes from our deployment, this performance's introduction remains editable here”, over a reset that makes the design look right but erases an editor's ongoing work.
In the production release, record who will apply any site-specific setting and how to confirm it succeeded. Keep ordinary content edits running independently of file deployment. When an editor has corrected a sold-out notice on the live site, replacing the entire database with yesterday's staging version to carry one template change can publish stale availability. Move the reviewed files and the smallest supported configuration change. Repeat the actual signed-out and editor tests against production to establish that the same template now wins.
Test inheritance, not just the page you changed
Give the theatre three pages to open: a performance using the override, a news article inheriting the parent, and the homepage with its shared navigation. Check the header, footer, typography, menu locations, booking link and mobile layout on each. A theme switch can expose settings or menu assignments associated with the old active theme. Capture what was set before assuming the markup broke.
Ask an editor to create a future performance from scratch. Can they find the template, identify which part is editable and update a date without editing global content? A good template has to work for the second event, not simply produce a perfect screenshot of the first.
With a block theme, identify any settings and templates still stored in the staging database. Moving the child directory will not carry all of those changes. Record whether they need exporting through a supported workflow, recreating on production or transferring as reviewed theme files. Check links and media after the transfer. Switching back to the parent theme does not magically restore database records altered independently.
Keep parent updates affordable
Maintain a small manifest with the override path, the original parent version, why the file exists, and a public page that exercises it. At the next parent release compare three versions: the parent you originally copied, the new parent and your child override. The change between the two parents shows upstream work you might otherwise miss, including improved markup or accessibility behaviour.
If the parent now supports the theatre’s layout directly, remove the override on staging and repeat the same tests. If you still need the override, carry forward relevant upstream changes deliberately. A child isolates your file from being overwritten; it also isolates that file from automatic improvements in its parent. Planning a WordPress update
Roll back appearance changes using the prior theme files and appropriate saved template or style configuration. Verify a normal page as well as the theatre’s performance listing. The finished handover should identify where a future editor changes this performance’s date, where a designer changes all performance layouts, and where nobody should paste an unrelated business integration.