Skip to main content
Website & Hosting

How to Make a WordPress Child Theme: The Beginner Guide

Alex MorganAlex MorganJanuary 31, 2026Updated: January 31, 20266 min read

Disclosure: Some links in this article are affiliate links. If you click and make a purchase, we may earn a commission at no extra cost to you. This does not influence our editorial recommendations - we only recommend products and services we genuinely believe in. Read our full affiliate disclosure.

How to Make a WordPress Child Theme: The Beginner Guide โ€“ featured image

Every WordPress tutorial eventually tells you to use a child theme, and almost none explain why in plain terms. Here it is: your theme updates itself, and if you edited its files directly, the update deletes your edits. A child theme keeps your changes separate so updates pass by harmlessly. This guide shows the manual method in ten minutes, plus the plugin shortcut.

Note: this page names paid tools. If you subscribe through the links here, RemoGrid may earn a commission at no extra cost to you.

Website Optimization and Security Best Practices

Choosing a reliable web host is the first step, but maintaining optimal website performance requires ongoing attention to configuration, caching, and security essentials. A fast, secure site improves user experience and supports higher search engine rankings.

Implement server-level or plugin-based caching, configure a content delivery network (CDN) like Cloudflare, and compress all images before uploading them to your server. Keeping your themes, plugins, and core CMS software updated protects your site against common vulnerabilities and ensures compatibility with modern PHP and database standards.

Always maintain automated off-site backups. Whether using an automated host backup tool or an independent cloud backup solution, having a recent restore point ensures you can recover quickly from unexpected technical errors or server issues.

The Short Answer

A child theme is a tiny theme that uses all the code from a parent theme and lets you add your own changes on top. You create it by making a folder with two files: style.css and functions.php. Activate the child theme, and your custom CSS and code edits survive every parent theme update. It is the standard, safe way to customize a WordPress theme.

Why the Child Theme Exists

WordPress themes release updates. Those updates fix bugs, patch security holes and add features. If you edited the theme's files directly, the update process overwrites the theme with fresh files - your edits disappear, sometimes silently. The child theme exists to solve exactly this: you never touch the parent, so updates always apply cleanly, and your changes live in a separate layer that updates never touch.

What You Need Before Starting

The manual method needs two things: access to your site's files (FTP, cPanel file manager, or a host's file manager) and a text editor. That is all. You do not need to know PHP, because the two files use the same tiny pattern every time. The parent theme's name in the header must match exactly - that is the only detail where beginners stumble.

Step One: Create the Folder

Go to wp-content/themes in your file manager and create a new folder for the child theme. The conventional name is the parent's name plus "-child" - for example, if your theme is Astra, create a folder called astra-child. Keep the name lowercase with no spaces or special characters.

Step Two: Create style.css

Inside the new folder, create a file called style.css with the required header at the top:

The Theme Name is what appears in your admin themes list. The Template line is the exact folder name of the parent theme - get this right or WordPress will refuse the theme. Add any custom CSS below the header; WordPress loads this file after the parent styles, so your rules win.

Step Three: Create functions.php

Create a second file called functions.php with the standard loading code. Its job is to tell WordPress to load the parent theme's styles first, then the child's. The exact code is a short function with wp_enqueue_style, and every child theme uses the same pattern. Without this file, the child theme loads with no styles and the site looks broken.

Step Four: Activate the Child Theme

Back in your WordPress admin, go to Appearance, then Themes. The child theme appears in the list with its parent as a note. Activate it, then check the site. If it looks identical to before, everything worked. Add your custom CSS to the child's style.css or via the customizer, and your customizations are now safe from updates.

The Plugin Shortcut

If the manual method feels risky, plugins like Child Theme Configurator build the child theme for you: pick the parent, click, and it generates the folder, files and enqueue code automatically. This is the sensible route for people who are not comfortable in a file manager. The result is the same, and you still end up with a normal child theme you can edit later.

When You Do Not Need a Child Theme

The honest version: if you only use the customizer and plugins - no file edits, no custom PHP - a child theme is optional. The customizer stores your changes in the database, which updates do not touch. The moment you paste custom code into a theme file or want a code snippet in functions.php, the child theme becomes necessary. A child theme is also the right call if a developer is building for you, because they should never edit the parent.

The Common Mistakes

The three beginner errors, all avoidable:

  • Wrong Template name - it must match the parent's folder name exactly, not its display name
  • Missing functions.php - without the enqueue, the site loses its styling
  • Putting the child in the wrong place - it belongs in wp-content/themes, same as any theme

Each one produces a visibly broken or rejected theme, and each is fixed in seconds once you know what to look for.

What I'd Actually Do

I would make the child theme by hand the first time, because the two files teach you how the whole system fits together. For a client site or a quick fix, I would use a child theme plugin and move on. Either way, I would activate the child immediately and make all future customization there, so the parent theme stays clean and updateable forever.

Final Takeaway

A child theme is ten minutes of setup that protects every customization you make afterward. Create the folder, write the two standard files, activate, and keep your edits in the child. The plugin shortcut works when you are in a hurry, but the manual version is worth doing once so the concept is never mysterious again.

Also read: free WordPress themes for beginners 2026, best mobile-friendly WordPress themes 2026, how to install WordPress step by step.

#wordpress#themes#coding#website design

Frequently Asked Questions

A child theme is a small theme that inherits everything from a parent theme. Your custom changes live in the child, so theme updates to the parent never wipe them out.

Only if you edit theme files or add custom CSS that you want to keep. If you only use the customizer and plugins, a child theme is not required, though it is still a safe habit.

Create a folder in wp-content/themes, add a style.css with the required header, add a functions.php that enqueues the parent styles, then activate the child theme. The process takes about ten minutes.

Content in posts and pages is safe, but layout choices made inside the old theme, like widget positions and customizer settings, may not carry over. A child theme avoids losing your customizations during parent theme updates.

Yes. Plugins like Child Theme Configurator create one for you in a click. Doing it by hand is still worth learning because it explains how the site fits together.

The child inherits the parent's design and lets you edit safely. Parent updates do not wipe the child's changes.

Simple tweaks can go in the customiser, while code edits need a child theme. Use the child for anything you do not want lost.

Alex Morgan - Founder & Lead Editor
Alex MorganยทFounder & Lead Editor

Alex Morgan is the founder and lead editor of RemoGrid. With over six years of hands-on experience in remote operations, cross-border freelance workflows, and AI tool benchmarking, Alex independently tests and audits software platforms to help modern digital workers build sustainable online income streams. He regularly reviews international payment systems (Wise, Stripe, Payoneer, local mobile wallets) and conducts real-world usability benchmarks across AI productivity tools.

Related Articles

Featured image for Best Mobile-Friendly WordPress Themes 2026 for SlowWebsite & Hosting

Best Mobile-Friendly WordPress Themes 2026 for Slow

How to pick a WordPress theme that loads fast on phones and slow networks. Responsive testing process, lightweight theme list, and settings that matter.

#wordpress#themes
August 6, 20266 min read
Featured image for Best Hosting for Ghanaian Websites (Cedi Options 2026)Website & Hosting

Best Hosting for Ghanaian Websites (Cedi Options 2026)

Ghanaian websites need hosting that accepts Cedi or mobile money and stays fast for local visitors. Here's the honest guide to local and international.

#web hosting#ghana
August 4, 20266 min read