{"id":3442,"date":"2020-01-27T15:00:42","date_gmt":"2020-01-27T14:00:42","guid":{"rendered":"https:\/\/qodeinteractive.com\/magazine\/?p=3442"},"modified":"2020-09-03T10:21:07","modified_gmt":"2020-09-03T08:21:07","slug":"wordpress-child-theme","status":"publish","type":"post","link":"https:\/\/qodeinteractive.com\/magazine\/wordpress-child-theme\/","title":{"rendered":"What is a WordPress Child Theme and Do You Need One"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_column_text]No matter how perfect the <a href=\"https:\/\/qodeinteractive.com\/themes-list\/\">premium WordPress theme<\/a> you\u2019re using is, there will probably come a time when you will want to customize things a bit here and there. Similarly, the theme developer will issue an update, and you will, naturally, want to update your theme in order to make sure you\u2019re making the most out of the improvements that came with the update. <strong>In both these scenarios, it\u2019s a good thing to have a child theme at hand<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Which brings us to the question that troubles so many WordPress users: \u201cWhat is a child theme exactly, how does it work, and (most importantly) do I really need one?\u201d[\/vc_column_text][vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">What is a WordPress Child Theme<\/h2>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;21px&#8221;]<div class=\"qodef-single-image-holder    \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"395\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/01\/What-is-a-Child-Theme-in-WordPress.jpg\" class=\"attachment-full size-full\" alt=\"Child Theme in WordPress\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/01\/What-is-a-Child-Theme-in-WordPress.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/01\/What-is-a-Child-Theme-in-WordPress-300x167.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/01\/What-is-a-Child-Theme-in-WordPress-620x345.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Because it involves the word \u201cchild,\u201d many WordPress users mistakenly think that child themes are basic, stripped down version of the \u201cregular\u201d theme, and, consequently, often dismiss the idea of using one. [\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]But a child theme is not what it sounds. As the <a href=\"https:\/\/developer.wordpress.org\/themes\/advanced-topics\/child-themes\/\" target=\"_blank\" rel=\"noopener noreferrer\">WordPress Theme Handbook<\/a> puts it, \u201c\u2026a child theme inherits the look and feel of the parent theme and all of its functions, but can be used to make modifications to any part of the theme. In this way, customizations are kept separate from the parent theme\u2019s files. Using a child theme lets you upgrade the parent theme without affecting the customizations you\u2019ve made to your site.\u201d[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]This means that a child theme is not a standalone theme, but a theme that is exclusively connected to another theme \u2013 the parent theme. Just like a child gets his or her eyes and hair color from parents, <strong>so does the child theme inherit the functionality and styling of the parent theme<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]The purpose of a child theme is to allow you to make changes and modifications to it, instead of to the parent theme,<strong> without running the risk of breaking something or losing some original functionalities and settings<\/strong>. We\u2019ll explain that in more detail in a bit.[\/vc_column_text][vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">Child Theme vs. Parent Theme<\/h2>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;21px&#8221;]<div class=\"qodef-single-image-holder    \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"395\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/01\/Child-Theme-vs.-Parent-Theme.jpg\" class=\"attachment-full size-full\" alt=\"Child Theme vs. Parent Theme\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/01\/Child-Theme-vs.-Parent-Theme.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/01\/Child-Theme-vs.-Parent-Theme-300x167.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/01\/Child-Theme-vs.-Parent-Theme-620x345.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Like we said above, a child theme has the same features and functionalities as its parent theme. It also looks like the parent theme, inheriting all its stylization. [\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]It is worth noting that <strong>a child theme cannot work on its own<\/strong>, while a parent theme can function very well on its own.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]You can think of a child theme as <strong>an additional layer upon the parent theme<\/strong>. You can use this layer to change things around, add custom functionalities, and tweak the look and feel of the parent theme. In short, it\u2019s there to let you make all sorts of customizations without having to worry about ruining anything irreparably. As soon as you take the layer off, all the core functions and settings of the parent theme will still be there, as if you haven\u2019t changed anything.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]That\u2019s why most WordPress experts will tell you that it is the best practice to create a child theme and use it to add any new features or style changes to your theme. More importantly, they will tell you that <strong>you should never tamper with the WordPress core files, plugin files, or theme files, and edit them directly<\/strong>. Instead, you should always use a child theme to make any changes.[\/vc_column_text][vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">Benefits of Using a Child Theme in WordPress<\/h2>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;21px&#8221;]<div class=\"qodef-single-image-holder    \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"395\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/01\/Benefits-of-Using-a-Child-Theme.jpg\" class=\"attachment-full size-full\" alt=\"Benefits of Using a Child Theme\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/01\/Benefits-of-Using-a-Child-Theme.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/01\/Benefits-of-Using-a-Child-Theme-300x167.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/01\/Benefits-of-Using-a-Child-Theme-620x345.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Like we said earlier, the main reason for using a child theme is to make sure your main theme is safe and your website performance is intact after significant changes, updates and so on. [\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Some of the advantages of using a child theme include: [\/vc_column_text][vc_empty_space height=&#8221;23px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n                        <span class=\"qodef-ul-title\">\n                <span class=\"qodef-ul-title-text\">Safe updates<\/span>\n            <\/span><span class=\"qodef-ul-mark\">: <\/span><span class=\"qodef-ul-title-content\">if you customize your theme directly, without using a child theme, as soon as you update the theme all your modifications will be gone. This is because all the files you modified and added some custom code to will be overwritten by the updated theme files. Because of this, some users refuse to update their theme as a way to keep their modifications. Of course, this is absolutely the wrong way of doing things. Updating your theme is important from various aspects, including security and performance improvements. By applying all modifications to your child theme, you can safely update your parent theme and still keep all the changes you have made in the meantime.<\/span>        <\/div>\n            <\/li>\n<\/ul><ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n                        <span class=\"qodef-ul-title\">\n                <span class=\"qodef-ul-title-text\">Easy customization<\/span>\n            <\/span><span class=\"qodef-ul-mark\">: <\/span><span class=\"qodef-ul-title-content\">the easiest way to set up a custom theme is by customizing your child theme CSS. Yes, it does take a little know-how, but far from what it would normally take to create a custom theme from scratch. <\/span>        <\/div>\n            <\/li>\n<\/ul><ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n                        <span class=\"qodef-ul-title\">\n                <span class=\"qodef-ul-title-text\">Better organization and faster development<\/span>\n            <\/span><span class=\"qodef-ul-mark\">: <\/span><span class=\"qodef-ul-title-content\">if you place all your modifications in the child theme folder, you will find it much easier to keep track of them and the other changes that you have made. This will come in handy in case of any future modifications as you will know exactly where these modifications are located. <\/span>        <\/div>\n            <\/li>\n<\/ul><ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n                        <span class=\"qodef-ul-title\">\n                <span class=\"qodef-ul-title-text\">Better speed and performance<\/span>\n            <\/span><span class=\"qodef-ul-mark\">: <\/span><span class=\"qodef-ul-title-content\">If you create a child theme and use it to make modifications, you don\u2019t have to worry about them slowing down your website and affecting its performance. You can make specific, targeted modifications on the child theme without burdening the theme itself, as you otherwise would, by installing plugins to achieve the desired result.<\/span>        <\/div>\n            <\/li>\n<\/ul><ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n                        <span class=\"qodef-ul-title\">\n                <span class=\"qodef-ul-title-text\">Learning tool<\/span>\n            <\/span><span class=\"qodef-ul-mark\">: <\/span><span class=\"qodef-ul-title-content\">if you need a safe practicing ground for working with themes, beginner developers and designers can always use the child theme to basically play around. If anything goes wrong, as things tend to do when we first start learning something, you can always go back to the original design and functionalities, which will all be there in the parent theme, waiting for you, intact.<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;42px&#8221;][vc_separator color=&#8221;custom&#8221; accent_color=&#8221;#f0f0f0&#8243;][vc_empty_space height=&#8221;50px&#8221;][vc_widget_sidebar sidebar_id=&#8221;top-picks-banner&#8221;][vc_empty_space height=&#8221;28px&#8221;][vc_separator color=&#8221;custom&#8221; accent_color=&#8221;#f0f0f0&#8243;][vc_empty_space height=&#8221;80px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">When Should You Use a Child Theme<\/h2>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;21px&#8221;]<div class=\"qodef-single-image-holder    \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"395\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/01\/When-Should-You-Use-a-Child-Theme.jpg\" class=\"attachment-full size-full\" alt=\"WordPress Themes for Charities\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/01\/When-Should-You-Use-a-Child-Theme.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/01\/When-Should-You-Use-a-Child-Theme-300x167.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/01\/When-Should-You-Use-a-Child-Theme-620x345.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]While it is obvious that child themes have many significant benefits and can make your life as a WordPress user much easier, <strong>that doesn\u2019t mean <em>all<\/em> WordPress users have to use them<\/strong>. In fact, many will never even need one.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Essentially, it all depends on the kind of changes you intend to make.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Any changes that include <strong>editing the theme\u2019s CSS stylesheet, PHP templates, and functions.php file as well as theme folder files<\/strong> (including JS files and images) require you to use a child theme.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]On the other hand, if you intend to make only the <strong>simple changes through your Dashboard<\/strong> (including the changes made through the Theme Customizer, which, ironically, do not actually change your theme files), you don\u2019t need a child theme.[\/vc_column_text][vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">Issues Regarding the Use of Child Themes<\/h2>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;21px&#8221;]<div class=\"qodef-single-image-holder    \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"395\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/01\/Issues-Regarding-the-Use-of-Child-Themes.jpg\" class=\"attachment-full size-full\" alt=\"Issues Regarding the Use of Child Themes\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/01\/Issues-Regarding-the-Use-of-Child-Themes.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/01\/Issues-Regarding-the-Use-of-Child-Themes-300x167.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/01\/Issues-Regarding-the-Use-of-Child-Themes-620x345.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]There aren\u2019t really any cons or disadvantages when it comes to using a child theme for your WordPress website. If you have good reasons to use one \u2013 like the ones we mentioned just above \u2013 you should definitely use it. But there is a thing or two to keep in mind here. [\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]First of all, if you\u2019re going to be working on the child theme yourself (and not have it done by a developer, a WordPress hosting support tech, or any other WordPress professional), you should know <strong>it does come with a learning curve<\/strong>. It does get easier with time, and the first child theme is the hardest to manage, but you have to prepare yourself for some hard work.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]The second thing about it is that WordPress child themes are ideal for <strong>small to medium changes, not complete overhauls of themes<\/strong>. If you\u2019re working with a theme that requires a ton of work in order to look and function the way you want it, it may be a sign you picked a wrong theme.[\/vc_column_text][vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">Final Thoughts<\/h2>\n<p>[\/vc_column_text][vc_column_text]Having a child theme at hand is certainly a good idea, but, as we saw, it\u2019s not something that all WordPress users should see as an imperative. It is certainly part of the best practice to use a child theme for any modifications to the theme style and functionality. So if you intend to make these kinds of changes to your WordPress website \u2013 make sure you have a child theme ready. The good news is that most premium WordPress theme developers, including Qode Interactive, already offer WordPress child themes bundled with their product, so you don\u2019t have to create one by yourself. [\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Ever wondered what a child theme in WordPress is exactly? In this article, we&#8217;re shedding some light on child themes and explaining why and how to use them. <\/p>\n","protected":false},"author":3,"featured_media":6722,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[14,13],"class_list":["post-3442","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-resources","tag-core","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts\/3442","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/comments?post=3442"}],"version-history":[{"count":0,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts\/3442\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/media\/6722"}],"wp:attachment":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/media?parent=3442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/categories?post=3442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/tags?post=3442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}