Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the updraftplus domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/cinema2/faq.scriptonite.app/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/cinema2/faq.scriptonite.app/wp-includes/functions.php on line 6114
Warning: Cannot modify header information - headers already sent by (output started at /home/cinema2/faq.scriptonite.app/wp-includes/functions.php:6114) in /home/cinema2/faq.scriptonite.app/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home/cinema2/faq.scriptonite.app/wp-includes/functions.php:6114) in /home/cinema2/faq.scriptonite.app/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home/cinema2/faq.scriptonite.app/wp-includes/functions.php:6114) in /home/cinema2/faq.scriptonite.app/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home/cinema2/faq.scriptonite.app/wp-includes/functions.php:6114) in /home/cinema2/faq.scriptonite.app/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home/cinema2/faq.scriptonite.app/wp-includes/functions.php:6114) in /home/cinema2/faq.scriptonite.app/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home/cinema2/faq.scriptonite.app/wp-includes/functions.php:6114) in /home/cinema2/faq.scriptonite.app/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home/cinema2/faq.scriptonite.app/wp-includes/functions.php:6114) in /home/cinema2/faq.scriptonite.app/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home/cinema2/faq.scriptonite.app/wp-includes/functions.php:6114) in /home/cinema2/faq.scriptonite.app/wp-includes/rest-api/class-wp-rest-server.php on line 1893
{"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:\/\/faq.scriptonite.app\/faq\/sample-user-guide\/some-common-issues\/how-to-customize-theme-using-child-theme\/","title":{"rendered":"How to customize theme using child theme?"},"content":{"rendered":"\n
OVERRIDING PARENT THEME FILES<\/h2>\n\n\n\n
You can not only target individual style declarations via the style sheet but also override entire components of the parent theme.<\/p>\n\n\n\n
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 header.php<\/code> file in the child theme will override its equivalent in the parent folder.<\/p>\n\n\n\n
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>\n\n\n\n
WORKING WITH TEMPLATE FILES<\/h2>\n\n\n\n
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 exist only in the child theme<\/strong> is also possible. Template files are a good example of this.<\/p>\n\n\n\n
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>\n\n\n\n
To create a full-width page in Chaoz you have to create a custom page template. Let\u2019s start with the page template.<\/p>\n\n\n\n
For our custom page template, we simply copy page.php<\/code> from the parent theme, rename it to page-full-width.php<\/code> and place it in the Child theme\u2019s root folder.<\/p>\n","protected":false},"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"],"yoast_head":"\nHow to customize theme using child theme? - Scriptonite FAQ<\/title>\n\n\n\n\n\n\n\n\n\n\t\n