{"id":16063,"date":"2026-09-17T23:43:03","date_gmt":"2026-09-17T22:43:03","guid":{"rendered":"https:\/\/da-manager.com\/blog\/how-to-create-a-wordpress-child-theme\/"},"modified":"2026-09-17T23:43:03","modified_gmt":"2026-09-17T22:43:03","slug":"how-to-create-a-wordpress-child-theme","status":"publish","type":"post","link":"https:\/\/da-manager.com\/blog\/how-to-create-a-wordpress-child-theme\/","title":{"rendered":"How to Create a WordPress Child Theme"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_87 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/da-manager.com\/blog\/how-to-create-a-wordpress-child-theme\/#How_to_Create_a_WordPress_Child_Theme_A_Complete_Guide\" >How to Create a WordPress Child Theme: A Complete Guide<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/da-manager.com\/blog\/how-to-create-a-wordpress-child-theme\/#What_Is_a_WordPress_Child_Theme\" >What Is a WordPress Child Theme?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/da-manager.com\/blog\/how-to-create-a-wordpress-child-theme\/#Why_WordPress_Child_Theme_Hosting_Matters\" >Why WordPress Child Theme Hosting Matters<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/da-manager.com\/blog\/how-to-create-a-wordpress-child-theme\/#What_You_Will_Need_Before_You_Start\" >What You Will Need Before You Start<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/da-manager.com\/blog\/how-to-create-a-wordpress-child-theme\/#Step-by-Step_How_to_Create_a_WordPress_Child_Theme_Manually\" >Step-by-Step: How to Create a WordPress Child Theme Manually<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/da-manager.com\/blog\/how-to-create-a-wordpress-child-theme\/#Step_1_Create_a_New_Folder_for_Your_Child_Theme\" >Step 1: Create a New Folder for Your Child Theme<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/da-manager.com\/blog\/how-to-create-a-wordpress-child-theme\/#Step_2_Create_the_Style_Sheet\" >Step 2: Create the Style Sheet<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/da-manager.com\/blog\/how-to-create-a-wordpress-child-theme\/#Step_3_Create_the_Functions_File\" >Step 3: Create the Functions File<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/da-manager.com\/blog\/how-to-create-a-wordpress-child-theme\/#Step_4_Activate_Your_Child_Theme\" >Step 4: Activate Your Child Theme<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/da-manager.com\/blog\/how-to-create-a-wordpress-child-theme\/#Step_5_Start_Customising\" >Step 5: Start Customising<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/da-manager.com\/blog\/how-to-create-a-wordpress-child-theme\/#Using_a_Plugin_to_Create_a_Child_Theme\" >Using a Plugin to Create a Child Theme<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/da-manager.com\/blog\/how-to-create-a-wordpress-child-theme\/#Common_Mistakes_to_Avoid\" >Common Mistakes to Avoid<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/da-manager.com\/blog\/how-to-create-a-wordpress-child-theme\/#Incorrect_Template_Name\" >Incorrect Template Name<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/da-manager.com\/blog\/how-to-create-a-wordpress-child-theme\/#Not_Testing_Before_Going_Live\" >Not Testing Before Going Live<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/da-manager.com\/blog\/how-to-create-a-wordpress-child-theme\/#Editing_the_Parent_Theme_Directly\" >Editing the Parent Theme Directly<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/da-manager.com\/blog\/how-to-create-a-wordpress-child-theme\/#Final_Thoughts\" >Final Thoughts<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<p><html><br \/>\n<head><br \/>\n<title>How to Create a WordPress Child Theme<\/title><br \/>\n<\/head><br \/>\n<body><\/p>\n<h1><span class=\"ez-toc-section\" id=\"How_to_Create_a_WordPress_Child_Theme_A_Complete_Guide\"><\/span>How to Create a WordPress Child Theme: A Complete Guide<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>If you have ever customised a WordPress website only to watch all your hard work disappear after a theme update, you will understand exactly why WordPress child themes are so important. Creating a child theme is one of the smartest things you can do as a WordPress site owner or developer. It protects your customisations, keeps your site secure, and gives you the freedom to make changes without touching the parent theme&#8217;s core files.<\/p>\n<p>In this guide, we will walk you through everything you need to know about creating a WordPress child theme, from understanding what one actually is to getting it set up correctly on your hosting environment. Whether you are a beginner or a seasoned developer, this step-by-step tutorial will help you get things right the first time.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"What_Is_a_WordPress_Child_Theme\"><\/span>What Is a WordPress Child Theme?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>A WordPress child theme is essentially a theme that inherits the functionality, features, and styling of another theme \u2014 known as the parent theme. Rather than modifying the parent theme directly, you make all your changes within the child theme. When the parent theme is updated, your customisations remain completely intact because they live in a separate set of files.<\/p>\n<p>This is the recommended approach for any WordPress customisation. Even if you are only changing a small CSS rule or adding a custom function, doing so through a child theme is best practice and will save you a great deal of frustration in the long run.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Why_WordPress_Child_Theme_Hosting_Matters\"><\/span>Why WordPress Child Theme Hosting Matters<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Before diving into the technical steps, it is worth discussing the importance of <strong>WordPress child theme hosting<\/strong>. The hosting environment you choose has a direct impact on how smoothly your child theme performs. A quality hosting provider will offer the right PHP version, sufficient file permissions, and reliable server speeds \u2014 all of which are essential when you are developing and deploying a child theme.<\/p>\n<p>Poor hosting can lead to slow load times, permission errors when uploading theme files, and compatibility issues that make debugging a nightmare. When selecting a host for your WordPress site, always look for one that supports the latest version of PHP, offers easy file management via cPanel or SFTP, and provides staging environments so you can test your child theme before going live.<\/p>\n<p>For further reading on choosing the right hosting setup for your WordPress projects, take a look at the helpful resources available at <a href=\"https:\/\/da-manager.com\/blog\" target=\"_blank\">da-manager.com\/blog<\/a>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"What_You_Will_Need_Before_You_Start\"><\/span>What You Will Need Before You Start<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To create a WordPress child theme, you will need the following:<\/p>\n<ul>\n<li>A WordPress website that is live or running locally<\/li>\n<li>An active parent theme already installed (such as Twenty Twenty-Four or Astra)<\/li>\n<li>Access to your website&#8217;s files via FTP, SFTP, or a file manager in your hosting control panel<\/li>\n<li>A basic text editor such as Notepad++, Sublime Text, or Visual Studio Code<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Step-by-Step_How_to_Create_a_WordPress_Child_Theme_Manually\"><\/span>Step-by-Step: How to Create a WordPress Child Theme Manually<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"Step_1_Create_a_New_Folder_for_Your_Child_Theme\"><\/span>Step 1: Create a New Folder for Your Child Theme<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Using your FTP client or hosting file manager, navigate to the <code>wp-content\/themes\/<\/code> directory on your server. Inside this folder, create a new directory for your child theme. It is good practice to name it after the parent theme with &#8220;-child&#8221; appended. For example, if your parent theme is called &#8220;astra&#8221;, name your child theme folder &#8220;astra-child&#8221;.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_2_Create_the_Style_Sheet\"><\/span>Step 2: Create the Style Sheet<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Inside your newly created child theme folder, create a file called <code>style.css<\/code>. This is the most important file in your child theme. Open it in your text editor and add the following header information at the very top:<\/p>\n<pre>\n\/*\nTheme Name: Astra Child\nTheme URI: https:\/\/yourwebsite.co.uk\nDescription: A child theme for the Astra theme\nAuthor: Your Name\nAuthor URI: https:\/\/yourwebsite.co.uk\nTemplate: astra\nVersion: 1.0.0\nLicense: GNU General Public License v2 or later\nLicense URI: http:\/\/www.gnu.org\/licenses\/gpl-2.0.html\nText Domain: astra-child\n*\/\n<\/pre>\n<p>The most critical line here is <code>Template:<\/code>. This must match exactly the folder name of your parent theme. If it does not match, WordPress will not recognise the relationship between the two themes.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_3_Create_the_Functions_File\"><\/span>Step 3: Create the Functions File<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Next, create a file called <code>functions.php<\/code> in your child theme folder. This file is used to enqueue the parent theme&#8217;s stylesheet so that all the original styles are loaded correctly. Add the following code:<\/p>\n<pre>\n&lt;?php\nfunction my_child_theme_enqueue_styles() {\n    wp_enqueue_style(\n        'parent-style',\n        get_template_directory_uri() . '\/style.css'\n    );\n    wp_enqueue_style(\n        'child-style',\n        get_stylesheet_directory_uri() . '\/style.css',\n        array('parent-style')\n    );\n}\nadd_action('wp_enqueue_scripts', 'my_child_theme_enqueue_styles');\n<\/pre>\n<p>This ensures that both the parent and child stylesheets are loaded, with the child theme&#8217;s styles taking priority over the parent&#8217;s.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_4_Activate_Your_Child_Theme\"><\/span>Step 4: Activate Your Child Theme<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Log in to your WordPress dashboard and navigate to <strong>Appearance &gt; Themes<\/strong>. You should now see your child theme listed alongside the parent theme. Click <strong>Activate<\/strong> to make it live. Your website should look exactly the same as before, which means everything is working correctly.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_5_Start_Customising\"><\/span>Step 5: Start Customising<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Now that your child theme is active, you can begin making customisations. Any CSS you add to your child theme&#8217;s <code>style.css<\/code> will override the parent theme&#8217;s styles. Similarly, any functions you add to <code>functions.php<\/code> will extend or override those in the parent theme.<\/p>\n<p>You can also create template files within your child theme folder to override specific page templates from the parent theme. For example, if you want to customise the way single blog posts are displayed, simply copy the <code>single.php<\/code> file from the parent theme into your child theme folder and edit it there.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Using_a_Plugin_to_Create_a_Child_Theme\"><\/span>Using a Plugin to Create a Child Theme<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you are not comfortable working with files directly, there are several WordPress plugins that can create a child theme for you automatically. Plugins such as <strong>Child Theme Configurator<\/strong> or <strong>One Click Child Theme<\/strong> allow you to generate a child theme with just a few clicks from within the WordPress dashboard. While this method is quicker, understanding the manual process is still highly recommended so you know what is happening under the hood.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Common_Mistakes_to_Avoid\"><\/span>Common Mistakes to Avoid<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"Incorrect_Template_Name\"><\/span>Incorrect Template Name<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>As mentioned earlier, the <code>Template:<\/code> value in your <code>style.css<\/code> header must exactly match the parent theme&#8217;s folder name. Even a small typo will prevent the child theme from working properly.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Not_Testing_Before_Going_Live\"><\/span>Not Testing Before Going Live<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Always test your child theme in a staging environment before pushing changes to your live site. Many hosting providers offer staging tools, and this is one area where good <strong>WordPress child theme hosting<\/strong> truly makes a difference.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Editing_the_Parent_Theme_Directly\"><\/span>Editing the Parent Theme Directly<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Even with a child theme set up, some developers fall into the habit of making small edits directly to the parent theme. Resist this temptation entirely. All changes should be made within the child theme to ensure they are preserved through updates.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Final_Thoughts\"><\/span>Final Thoughts<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Creating a WordPress child theme is a straightforward process that offers enormous benefits in terms of flexibility, security, and long-term maintainability. By following the steps outlined in this guide, you can protect your customisations and build upon any parent theme with confidence.<\/p>\n<p>Remember that the quality of your <strong>WordPress child theme hosting<\/strong> plays a significant role in how well your theme performs. Invest in a reliable hosting provider, keep your WordPress installation and themes updated, and always develop within a child theme rather than modifying the parent directly. These habits will serve you well throughout your WordPress journey.<\/p>\n<p><\/body><br \/>\n<\/html><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Create a WordPress Child Theme<\/p>\n<p>How to Create a WordPress Child Theme: A Complete Guide<\/p>\n<p>If you have ever customised a WordPress website only to watch all your hard work disappear after a theme update, you will understand exactly why WordPress child themes are so important. Creating a chi<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mbp_gutenberg_autopost":false,"footnotes":""},"categories":[147],"tags":[],"class_list":["post-16063","post","type-post","status-publish","format-standard","category-general"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/posts\/16063","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/comments?post=16063"}],"version-history":[{"count":0,"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/posts\/16063\/revisions"}],"wp:attachment":[{"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/media?parent=16063"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/categories?post=16063"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/tags?post=16063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}