{"id":2625,"date":"2019-04-20T19:26:50","date_gmt":"2019-04-20T19:26:50","guid":{"rendered":"http:\/\/docs.creativegigs.net\/docs\/rogan-wordpress-theme-documentation\/faqs\/how-to-customize-theme-using-child-theme\/"},"modified":"2019-04-20T19:26:50","modified_gmt":"2019-04-20T19:26:50","slug":"how-to-customize-theme-using-child-theme","status":"publish","type":"docs","link":"https:\/\/landpagy.twixxer.com\/index.php\/docs\/sample-user-guide\/some-common-issues\/how-to-customize-theme-using-child-theme\/","title":{"rendered":"How to customize the theme."},"content":{"rendered":"\r\n<h2 class=\"wp-block-heading\" id=\"overriding-parent-theme-files\">OVERRIDING PARENT THEME FILES<\/h2>\r\n\r\n\r\n\r\n<p>You can not only target individual style declarations via the style sheet but also override entire components of the parent theme.<\/p>\r\n\r\n\r\n\r\n<p>For every theme file present in the parent directory, WordPress will check whether a corresponding file is present in the child theme and if so, use that one instead. This means that a&nbsp;<code>header.php<\/code>&nbsp;file in the child theme will override its equivalent in the parent folder.<\/p>\r\n\r\n\r\n\r\n<p>So, if you don\u2019t like something about a page\u2019s layout, just copy the respective file, implement your changes, and upload it to the child theme\u2019s folder. The modifications will then appear in the child theme, while the original file will remain untouched.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"working-with-template-files\">WORKING WITH TEMPLATE FILES<\/h2>\r\n\r\n\r\n\r\n<p>We\u2019ve learned that we can overwrite any file in the parent theme by placing a copy in the child theme\u2019s folder and customizing it. However, using files that&nbsp;<strong>exist only in the child theme<\/strong>&nbsp;is also possible. Template files are a good example of this.<\/p>\r\n\r\n\r\n\r\n<p>Let\u2019s say we want to build a full-width page template for our child theme. Our theme does not lend itself to the full-screen presentation, but let\u2019s do it anyway for demonstration purposes, shall we?<\/p>\r\n\r\n\r\n\r\n<p>To create a full-width page in Chaoz you have to create a custom page template. Let\u2019s start with the page template.<\/p>\r\n\r\n\r\n\r\n<p>For our custom page template, we simply copy&nbsp;<code>page.php<\/code>&nbsp;from the parent theme, rename it to&nbsp;<code>page-full-width.php<\/code>&nbsp;and place it in the Child theme\u2019s root folder.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>OVERRIDING PARENT THEME FILES You can not only target individual style declarations via the style sheet but also override entire components of the parent theme. For every theme file present in the parent directory, WordPress will check whether a corresponding file is present in the child theme and if so, use that one instead. This [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2537,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-2625","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"_links":{"self":[{"href":"https:\/\/landpagy.twixxer.com\/index.php\/wp-json\/wp\/v2\/docs\/2625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/landpagy.twixxer.com\/index.php\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/landpagy.twixxer.com\/index.php\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/landpagy.twixxer.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/landpagy.twixxer.com\/index.php\/wp-json\/wp\/v2\/comments?post=2625"}],"version-history":[{"count":0,"href":"https:\/\/landpagy.twixxer.com\/index.php\/wp-json\/wp\/v2\/docs\/2625\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/landpagy.twixxer.com\/index.php\/wp-json\/wp\/v2\/docs\/2537"}],"wp:attachment":[{"href":"https:\/\/landpagy.twixxer.com\/index.php\/wp-json\/wp\/v2\/media?parent=2625"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/landpagy.twixxer.com\/index.php\/wp-json\/wp\/v2\/doc_tag?post=2625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}