{"id":1322,"date":"2020-04-15T14:18:32","date_gmt":"2020-04-15T12:18:32","guid":{"rendered":"https:\/\/codesavory.com\/demo\/?post_type=knowledgebase&#038;p=1322"},"modified":"2020-04-22T15:42:09","modified_gmt":"2020-04-22T13:42:09","slug":"how-to-customize-the-header-and-footer","status":"publish","type":"knowledgebase","link":"https:\/\/basepresskb.com\/docs\/knowledge-base\/basepress-themes\/how-to-customize-the-header-and-footer\/","title":{"rendered":"How to customize the header and footer"},"content":{"rendered":"<p>BasePress uses easy <a href=\"https:\/\/basepresskb.com\/docs\/knowledge-base\/basepress-themes\/theme-functions\/\">templates<\/a> to render all the pages in the knowledge base. Each template loads the header and footer from your main WordPress theme.<br \/>\nIf you want to customize the header and footer for the knowledge base pages only or you need to adapt them to best work with BasePress, please follow the instructions below.<\/p>\n<ol>\n<li>Open your WordPress theme folder and locate these two files:<br \/>\n<strong><em>header.php<br \/>\n<\/em><\/strong>\u00a0<strong><strong><strong><em>footer.php<\/em><\/strong><\/strong><\/strong>&nbsp;<\/li>\n<li>Make a copy of the files in the same folder and rename them to:<br \/>\n<strong><em>header-basepress.php<br \/>\n<\/em><\/strong><strong><strong><strong><em>footer-basepress.php<\/em><\/strong><\/strong><\/strong>&nbsp;<\/li>\n<li>Open the files with your preferred editor and make changes as needed.<\/li>\n<\/ol>\n<p>Once the new files are in place, BasePress will use them instead of the default ones.<\/p>\n<p>IMPORTANT! When making changes to your main WordPress theme it is recommended to use a <a href=\"https:\/\/developer.wordpress.org\/themes\/advanced-topics\/child-themes\/\" target=\"_blank\" rel=\"noopener noreferrer\">child theme<\/a>. This way you can update your theme without loosing your changes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>BasePress uses easy templates to render all the pages in the knowledge base. Each template loads the header and footer from your main WordPress theme. If you want to customize the header and footer for the knowledge base pages only or you need to adapt them to best work with BasePress, please follow the instructions [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"https:\/\/basepresskb.com\/docs\/knowledge-base\/basepress-themes\/how-to-customize-the-header-and-footer\/\">Read More&#8230;<span class=\"screen-reader-text\"> from How to customize the header and footer<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","template":"","knowledgebase_cat":[20],"knowledgebase_tag":[],"class_list":["post-1322","knowledgebase","type-knowledgebase","status-publish","hentry","knowledgebase_cat-basepress-themes"],"_links":{"self":[{"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/knowledgebase\/1322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/types\/knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/comments?post=1322"}],"version-history":[{"count":5,"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/knowledgebase\/1322\/revisions"}],"predecessor-version":[{"id":1443,"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/knowledgebase\/1322\/revisions\/1443"}],"wp:attachment":[{"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/media?parent=1322"}],"wp:term":[{"taxonomy":"knowledgebase_cat","embeddable":true,"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/knowledgebase_cat?post=1322"},{"taxonomy":"knowledgebase_tag","embeddable":true,"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/knowledgebase_tag?post=1322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}