{"id":4030,"date":"2018-08-03T11:22:56","date_gmt":"2018-08-03T05:52:56","guid":{"rendered":"http:\/\/holithemes.com\/blog\/?p=4030"},"modified":"2018-08-03T11:22:56","modified_gmt":"2018-08-03T05:52:56","slug":"how-to-create-a-child-theme-in-wordpress","status":"publish","type":"post","link":"https:\/\/holithemes.com\/blog\/how-to-create-a-child-theme-in-wordpress\/","title":{"rendered":"How to Create a Child Theme in WordPress"},"content":{"rendered":"\n<p>By using a child theme the modifications will not be deleted if your parent theme gets updated.<\/p>\n\n\n\n<p>Using a child theme can speed up development time, is the safest way and highly recommended.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Creating a Child Theme<\/h3>\n\n\n\n<p>First,\u00a0<g class=\"gr_ gr_76 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace\" id=\"76\" data-gr-id=\"76\">open\u00a0<\/g><code>\/wp-content\/themes\/<\/code><g class=\"gr_ gr_76 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Style multiReplace\" id=\"76\" data-gr-id=\"76\">\u00a0in<\/g> your WordPress installation folder. <\/p>\n\n\n\n<p>Select the\u00a0parent theme for which you want to create a child theme.<\/p>\n\n\n\n<p>Here I&#8217;m creating a child theme for &#8220;Twenty Seventeen&#8221;.<\/p>\n\n\n\n<p>Create a new folder for your child theme, give any name and save it.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"645\" height=\"150\" src=\"https:\/\/holithemes.com\/blog\/wp-content\/uploads\/2018\/08\/demo.png\" alt=\"\" class=\"wp-image-4036\" srcset=\"https:\/\/holithemes.com\/blog\/wp-content\/uploads\/2018\/08\/demo.png 645w, https:\/\/holithemes.com\/blog\/wp-content\/uploads\/2018\/08\/demo-300x70.png 300w\" sizes=\"(max-width: 645px) 100vw, 645px\" \/><\/figure>\n\n\n\n<p>Open a text editor and paste this code:<\/p>\n\n\n\n<p>Save this file as\u00a0<code>style.css<\/code>\u00a0in the child theme folder you just created.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/*\n Theme Name:   WPB Child Theme\n Theme URI:    https:\/\/holithemes.com\/blog\/\n Description:  A Twenty Seventeen child theme \n Author:       Holithemes\n Author URI:   https:\/\/holithemes.com\/blog\n Template:     twentyseventeen\n Version:      1.0.0\n*\/\n \n@import url(\"..\/twentyseventeen\/style.css\");<\/code><\/pre>\n\n\n\n<p><strong>To check the Child Theme<\/strong><\/p>\n\n\n\n<p>Appearance -> Themes<\/p>\n\n\n\n<p>Now you will see WPB Child Theme. Click the &#8220;<strong>Activate<\/strong>&#8221; button to start using the child theme on your site.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"943\" height=\"382\" src=\"https:\/\/holithemes.com\/blog\/wp-content\/uploads\/2018\/08\/child_theme_activate.png\" alt=\"\" class=\"wp-image-4037\" srcset=\"https:\/\/holithemes.com\/blog\/wp-content\/uploads\/2018\/08\/child_theme_activate.png 943w, https:\/\/holithemes.com\/blog\/wp-content\/uploads\/2018\/08\/child_theme_activate-300x122.png 300w, https:\/\/holithemes.com\/blog\/wp-content\/uploads\/2018\/08\/child_theme_activate-768x311.png 768w\" sizes=\"(max-width: 943px) 100vw, 943px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>By using a child theme the modifications will not be deleted if your parent theme gets updated. Using a child theme can speed up development time, is the safest way and highly recommended. Creating a Child Theme First,\u00a0open\u00a0\/wp-content\/themes\/\u00a0in your WordPress installation folder. Select the\u00a0parent theme for which you want to create a child theme. Here [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[7],"tags":[],"class_list":["post-4030","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/posts\/4030","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/comments?post=4030"}],"version-history":[{"count":0,"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/posts\/4030\/revisions"}],"wp:attachment":[{"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/media?parent=4030"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/categories?post=4030"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/holithemes.com\/blog\/wp-json\/wp\/v2\/tags?post=4030"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}