{"id":9969,"date":"2024-02-02T16:14:08","date_gmt":"2024-02-02T10:14:08","guid":{"rendered":"https:\/\/helpdesk.spider-themes.net\/docs\/docy-wordpress-theme\/tips\/how-to-customize-docy-child-theme\/"},"modified":"2024-02-02T16:14:08","modified_gmt":"2024-02-02T10:14:08","slug":"docy-child-theme","status":"publish","type":"docs","link":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/docs\/docy-wordpress-theme\/tips\/docy-child-theme\/","title":{"rendered":"How to customize Docy Child Theme"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Why you should use the Docy child theme:<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Safeguarding Customizations during Updates:<\/h3>\n\n\n\n<p>In the absence of the <a href=\"https:\/\/spider-themes.net\/docy-best-documentation-forum-theme\/\">Docy <\/a>child theme, any modifications made directly to the theme&#8217;s core files might be overwritten when updates are applied. By utilizing the Docy child theme, you establish a protective layer that ensures your customizations remain unaffected, even when the main theme undergoes updates.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Enhancing Code Maintainability:<\/h3>\n\n\n\n<p>Opting for the Docy child theme allows you to keep your custom code separate from the original theme. This separation streamlines the management and troubleshooting of your modifications, offering a structured approach to maintaining and organizing customizations. The result is improved code maintainability and a more straightforward process for updating.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Protecting Your Customizations with Docy Child Theme<\/h2>\n\n\n\n<p>It is crucial to apply modifications through the customization process to safeguard the <a href=\"https:\/\/themeforest.net\/item\/docy-documentation-and-forum-wordpress-theme\/31370838\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Docy <\/a>theme customizations and retain them seamlessly following theme updates. This guide will take you through the necessary steps.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Installation<\/h3>\n\n\n\n<p><strong>Install the Docy Child Theme:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Locate the `docy-child.zip` file within the theme package.<\/li>\n\n\n\n<li>Upload it through the WordPress admin panel  [direction]Theme Options &gt; Appearance &gt; Themes &gt; Add New &gt; Upload Theme[\/direction] <\/li>\n\n\n\n<li>&nbsp;Alternatively, use an FTP client to upload the unzipped folder to `wp-content\/themes\/`.<\/li>\n<\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>IMPORTANT: Install the child theme <em><strong>before <\/strong><\/em>importing demo data to prevent customizations from being overwritten.<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Using the Child Theme<\/strong><\/h3>\n\n\n\n<p><strong>Edit Functions:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Add modified functions from the parent theme&#8217;s `functions.php` to the child theme&#8217;s `functions.php` file.<\/li>\n\n\n\n<li>Register new functions within the child theme&#8217;s `functions.php` as needed.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Override Template Files<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Copy any template files you wish to modify from the parent theme into the child theme, maintaining the original folder structure.<\/li>\n\n\n\n<li>Edit these files directly within the child theme folder.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Excluded Folders: Do not copy files from these folders:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>`\/inc`<\/li>\n\n\n\n<li>`\/options`<\/li>\n<\/ul>\n\n\n\n<p><strong>Specific Functions:<\/strong><br>If modifying a function within an excluded folder, copy only the required function to the child theme&#8217;s `functions.php` and register it there.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Remember:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Always prioritize child theme customizations to ensure seamless updates and prevent loss of changes.<\/li>\n\n\n\n<li>Maintain the original file paths when copying files to ensure proper functionality.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Additional Tips:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use clear and concise comments within your code to enhance readability and maintainability.<\/li>\n\n\n\n<li>Refer to the <a href=\"https:\/\/arolax.crowdytheme-demo.com\/documentation\/docs\/docy-wordpress-theme\/\">Docy theme documentation<\/a> for further guidance on specific customization options.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to easily customize your WordPress Docy Child Theme! Step-by-step guide for beginners\u2014make your site unique and stunning with simple tweaks today<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":54,"menu_order":8,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-9969","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/docs\/9969","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/comments?post=9969"}],"version-history":[{"count":0,"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/docs\/9969\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/docs\/54"}],"wp:attachment":[{"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/media?parent=9969"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/doc_tag?post=9969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}