{"id":1155906,"date":"2009-07-27T10:05:14","date_gmt":"2009-07-27T10:05:14","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/p2s-functionsphp-integrated-into-another-theme\/"},"modified":"2016-08-19T13:30:59","modified_gmt":"2016-08-19T13:30:59","slug":"p2s-functionsphp-integrated-into-another-theme","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/p2s-functionsphp-integrated-into-another-theme\/","title":{"rendered":"P2&#8217;s functions.php integrated into another theme?"},"content":{"rendered":"<p>Hi everyone!<\/p>\n<p>I&#8217;m new to WordPress but know some basics. <\/p>\n<p>I&#8217;m trying to extract the P2-functionality and place it into another theme that I&#8217;d like to use. In other words, keep most of the <strong>non-P2-theme<\/strong> (header, sidebar, footer and most of the CSS) and integrate with <strong>P2<\/strong> (index.php and supporting files, see below).<\/p>\n<p>I&#8217;ve located that the following files are needed for the extraction of P2s core functionality:<\/p>\n<ul>\nindex.php<br \/>\nstyles.css<br \/>\nfunctions.php\n<\/ul>\n<p>(the last two have to be integrated to the non-P2-theme and not just replaced)<\/p>\n<p>and these files can probably just be copy pasted:<\/p>\n<ul>\npost-form.php<br \/>\ninline-comments.php<br \/>\ncomment_form.php<br \/>\nentry.php<br \/>\n\/i\/<br \/>\n\/inc\/<br \/>\n\/languages\/\n<\/ul>\n<p>Now to the question:<\/p>\n<p>How do I go about integrating functions.php from <strong>P2<\/strong> into the existing functions.php from the <strong>non-P2-theme<\/strong>? I&#8217;m new to this and need some directions. <\/p>\n<p>P2 is a lovely &#8220;theme&#8221; and I&#8217;d like to see it as a core functionality rather than a theme!<\/p>\n<p>Tore G<\/p>\n","protected":false},"template":"","class_list":["post-1155906","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/1155906","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/1155906\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=1155906"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}