{"id":3995,"date":"2017-01-18T20:10:36","date_gmt":"2017-01-18T09:10:36","guid":{"rendered":"https:\/\/upstreamplugin.wpengine.com\/?post_type=knowledgebase&#038;p=3995"},"modified":"2018-05-02T14:29:37","modified_gmt":"2018-05-02T18:29:37","slug":"modify-frontend-layout","status":"publish","type":"knowledgebase","link":"https:\/\/upstreamplugin.com\/docs\/modify-frontend-layout\/","title":{"rendered":"How to Modify the Frontend Layout in UpStream"},"content":{"rendered":"<p>The templating system for UpStream is much the same as for other plugins such as WooCommerce.<\/p>\n<p>Template files can be found in <strong>\/wp-content\/plugins\/upstream\/templates\/<\/strong><\/p>\n<p>To override the default templates for UpStream, you need to create a folder within your active theme called \/upstream\/. Within this folder you can add various files and other folders to overwrite the default templates.<\/p>\n<p>The file and folder structure looks like this:<\/p>\n<pre>\/upstream\r\n\tarchive-project.php\r\n\tlogin.php\r\n\tsingle-project.php\r\n  \t\/assets\r\n    \t\/css\r\n      \t\tupstream-custom.css\r\n  \t\/global\r\n  \t\tfooter.php\r\n  \t\theader.php\r\n  \t\tsidebar.php\r\n  \t\ttop-nav.php\r\n  \t\/single-project\r\n  \t\tbugs.php\r\n  \t\tdetails.php\r\n  \t\tdiscussion.php\r\n  \t\tfiles.php\r\n  \t\tmilestones.php\r\n  \t\toverview.php\r\n  \t\ttasks.php\r\n<\/pre>\n<p>You don&#8217;t need to add every file and every folder, just the ones that you want to override.<\/p>\n<p>For example, to override the sidebar.php file, you simply copy the <strong>wp-content\/plugins\/upstream\/templates\/global\/sidebar.php<\/strong> file into <strong>wp-content\/themes\/YOURTHEME\/upstream\/global\/sidebar.php<\/strong> and you can then edit this file as you please.<\/p>\n<h3>Please note!<\/h3>\n<p>Do not edit the files within the core plugin itself as they are overwritten during the upgrade process and any customizations will be lost.<\/p>\n","protected":false},"author":1,"featured_media":0,"menu_order":100,"template":"","format":"standard","class_list":["post-3995","knowledgebase","type-knowledgebase","status-publish","format-standard","hentry","knowledgebase_category-developers","entry","no-media"],"_links":{"self":[{"href":"https:\/\/upstreamplugin.com\/wp-json\/wp\/v2\/knowledgebase\/3995","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/upstreamplugin.com\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/upstreamplugin.com\/wp-json\/wp\/v2\/types\/knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/upstreamplugin.com\/wp-json\/wp\/v2\/users\/1"}],"wp:attachment":[{"href":"https:\/\/upstreamplugin.com\/wp-json\/wp\/v2\/media?parent=3995"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}