<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>

		<title>How to add php code in single page? &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/how-to-add-php-code-in-single-page/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/how-to-add-php-code-in-single-page/feed/</link>
		<description></description>
		<lastBuildDate>Tue, 14 Oct 2025 10:17:50 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-add-php-code-in-single-page/#post-254297</guid>
					<title><![CDATA[How to add php code in single page?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-add-php-code-in-single-page/#post-254297</link>
					<pubDate>Mon, 20 Apr 2015 22:26:30 +0000</pubDate>
					<dc:creator>n2outlaw</dc:creator>

					<description>
						<![CDATA[
						<p>I built a website and switched to X-Theme. Awesome theme 🙂</p>
<p>Old website, I put my File Manager into the body still having the looking and feel like not leaving it. This was using .html and renaming it to .php in Dreamweaver. I&#8217;m not a expert but I know  enough to get by on .css but I just don&#8217;t know where to place code.</p>
<p>My &#8220;2&#8221; questions are:<br />
I have x-child-theme installed and I&#8217;m using Integrity</p>
<p>1. Where would I put this code that would normally go on the top of my .php file and where would I find it? I made a page called File Manager. The File Manager is fully working but &#8220;outside&#8221; of WordPress/X-Theme.<br />
I have to fully put in the address for it to work <a href="http://mywebsite.com/file-manager/filemanager.php" rel="nofollow">http://mywebsite.com/file-manager/filemanager.php</a></p>
<pre><code>&lt;?php
include_once(‘/home4/n2outlaw/public_html/taurusoutlaw.com/to-fm/class/FileManager.php’);
?&gt;</code></pre>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>2. And where would I put this code that would normally go into the same file but in the &lt;body&gt; of my .php</p>
<pre><code>&lt;?php

$FileManager = new FileManager();
print $FileManager-&gt;create();

?&gt;</code></pre>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-add-php-code-in-single-page/#post-254545</guid>
					<title><![CDATA[Reply To: How to add php code in single page?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-add-php-code-in-single-page/#post-254545</link>
					<pubDate>Tue, 21 Apr 2015 05:56:38 +0000</pubDate>
					<dc:creator>Paul R</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>Thanks for writing in!</p>
<p>You can copy the file wp-content/themes/x/framework/views/global/_header.php<br />
into your child theme -&gt; wp-content/themes/x-child/framework/views/global/_header.php</p>
<p>Then add your code on that file (x-child/framework/views/global/_header.php)</p>
<p>Hope that helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-add-php-code-in-single-page/#post-255002</guid>
					<title><![CDATA[Reply To: How to add php code in single page?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-add-php-code-in-single-page/#post-255002</link>
					<pubDate>Tue, 21 Apr 2015 16:29:29 +0000</pubDate>
					<dc:creator>n2outlaw</dc:creator>

					<description>
						<![CDATA[
						<p>That didn&#8217;t work. I&#8217;m getting a white screen on all pages with just the following text. Keep in mind that I only want this for one page called File Manager.</p>
<p>This image is Photoshopped for demonstration and I&#8217;m using Integrity (image is of Renew)<br />
<img decoding="async" src="http://taurusoutlaw.com/to-images/temp/demo.jpg" alt="Demo." /></p>
<p><strong>Error Text:</strong><br />
Parse error: syntax error, unexpected &#8216;class&#8217; (T_CLASS) in /home12345/12345/public_html/mywebsite.com/wp-content/themes/x-child/framework/views/global/_header.php on line 2</p>
<p>If this helps on what I&#8217;m trying to accomplish. Here is my old website .php code:</p>
<pre><code>&lt;?php
include_once(&#039;/hsphere/local/home/c163420/mywebsite.com/fm/class/FileManager.php&#039;);
?&gt;

&lt;!doctype html&gt;
&lt;html&gt;&lt;!-- InstanceBegin template=&quot;/Templates/pages.dwt&quot; codeOutsideHTMLIsLocked=&quot;false&quot; --&gt;
&lt;head&gt;
&lt;meta charset=&quot;UTF-8&quot;&gt;
&lt;!-- InstanceBeginEditable name=&quot;doctitle&quot; --&gt;
&lt;link rel=&quot;shortcut icon&quot; href=&quot;/images/logo/favicon.ico&quot; type=&quot;image/x-icon&quot;&gt;
&lt;link rel=&quot;icon&quot; href=&quot;/images/logo/favicon.ico&quot; type=&quot;image/x-icon&quot;&gt;
&lt;title&gt;Files and Brochures&lt;/title&gt;
&lt;!-- InstanceEndEditable --&gt;
&lt;link href=&quot;styles/main.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;
&lt;!-- InstanceBeginEditable name=&quot;head&quot; --&gt;
&lt;!-- InstanceEndEditable --&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;wrapper&quot;&gt;
  &lt;div id=&quot;header&quot;&gt;&lt;/div&gt;
&lt;div id=&quot;nav_photo&quot;&gt;
&lt;div class=&quot;nav_float&quot; id=&quot;home_nav&quot;&gt;&lt;a href=&quot;index.html&quot;&gt;Home&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;nav_float&quot; id=&quot;our-tech_nav&quot;&gt;&lt;a href=&quot;our_technology.html&quot;&gt;Our Technology&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;nav_float&quot; id=&quot;management_nav&quot;&gt;&lt;a href=&quot;management.html&quot;&gt;Management&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;nav_float&quot; id=&quot;about_nav&quot;&gt;&lt;a href=&quot;files_brochures.php&quot;&gt;Files and Brochures&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;nav_float&quot; id=&quot;contact-us_nav&quot;&gt;&lt;a href=&quot;contact_us.html&quot;&gt;Contact Us&lt;/a&gt;&lt;/div&gt;
  &lt;/div&gt;
&lt;!-- InstanceBeginEditable name=&quot;ed_article&quot; --&gt;
&lt;div id=&quot;article&quot;&gt;
&lt;?php

$FileManager = new FileManager();
print $FileManager-&gt;create();

?&gt;
  &lt;div class=&quot;rounded&quot; id=&quot;border_fill_1000&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;!-- InstanceEndEditable --&gt;
&lt;div class=&quot;clearfloat rounded&quot; id=&quot;footer&quot;&gt; 
    &lt;h6&gt;Copyright © 2012 by Verdant, llc&lt;/h6&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;!-- InstanceEnd --&gt;&lt;/html&gt;</code></pre>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-add-php-code-in-single-page/#post-255165</guid>
					<title><![CDATA[Reply To: How to add php code in single page?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-add-php-code-in-single-page/#post-255165</link>
					<pubDate>Tue, 21 Apr 2015 19:39:31 +0000</pubDate>
					<dc:creator>Zeshan</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Thanks for writing in! It sounds like you might be having an issue with a third party plugin or script. Regretfully, we cannot provide support for third party plugins or scripts as our support policy in the sidebar states due to the fact that there is simply no way to account for all of the potential variables at play when using another developer&#8217;s plugin or script. Because of this, any questions you have regarding setup, integration, or troubleshooting any piece of functionality that is not native to X will need to be directed to the original developer.</p>
<p>However, if you can provide us with your current code in files <strong>wp-content/themes/x-child/framework/views/global/_header.php</strong> and your FileManager.php file, we can take a closer look. </p>
<p>Please wrap your code inside <strong>code</strong> tag (see: <a href="http://prntscr.com/6wkzzj" rel="nofollow">http://prntscr.com/6wkzzj</a>).</p>
<p>Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-add-php-code-in-single-page/#post-255240</guid>
					<title><![CDATA[Reply To: How to add php code in single page?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-add-php-code-in-single-page/#post-255240</link>
					<pubDate>Tue, 21 Apr 2015 21:13:52 +0000</pubDate>
					<dc:creator>n2outlaw</dc:creator>

					<description>
						<![CDATA[
						This reply has been marked as private.						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-add-php-code-in-single-page/#post-255490</guid>
					<title><![CDATA[Reply To: How to add php code in single page?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-add-php-code-in-single-page/#post-255490</link>
					<pubDate>Wed, 22 Apr 2015 06:51:15 +0000</pubDate>
					<dc:creator>Paul R</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>You can try creating a new page template.</p>
<p>To do this create file template-file-manager.php in wp-content/themes/x-child<br />
Then copy the code below into that file.</p>
<pre><code>
&lt;?php
/* 
Template Name: File Manager
*/
include_once(&#039;/home4/n2outlaw/public_html/taurusoutlaw.com/to-fm/class/FileManager.php&#039;);
?&gt;

&lt;?php get_header(); ?&gt;

  &lt;div class=&quot;x-main full&quot; role=&quot;main&quot;&gt;

&lt;?php

$FileManager = new FileManager();
print $FileManager-&gt;create();

?&gt;
  &lt;/div&gt;

&lt;?php get_footer(); ?&gt;
</code></pre>
<p>After that create a page in wordpress and set the template to File Manager</p>
<p><a href="http://screencast.com/t/NJwexsM7B7Y" rel="nofollow">http://screencast.com/t/NJwexsM7B7Y</a></p>
<p>Then you can access that page with your file manager on it.</p>
<p>Hope that helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-add-php-code-in-single-page/#post-255921</guid>
					<title><![CDATA[Reply To: How to add php code in single page?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-add-php-code-in-single-page/#post-255921</link>
					<pubDate>Wed, 22 Apr 2015 17:07:14 +0000</pubDate>
					<dc:creator>n2outlaw</dc:creator>

					<description>
						<![CDATA[
						<p>Awesome it&#8217;s working within the theme but I think I still need a little more code because I have a lip hanging over as you can see below.</p>
<p><img decoding="async" src="http://taurusoutlaw.com/to-images/temp/demo-4.jpg" alt="demo" /></p>
<p>and when resizing it to the full wdith of 1200px:</p>
<p><img decoding="async" src="http://taurusoutlaw.com/to-images/temp/demo-5.jpg" alt="demo" /></p>
<p>I think I need to wrap this part of the code in a div and style it with css and make the container width to 1200px.  but I&#8217;m not the expert. Thanks for the help! Awesome theme 🙂</p>
<pre><code>&lt;?php

$FileManager = new FileManager();
print $FileManager-&gt;create();

?&gt;</code></pre>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-add-php-code-in-single-page/#post-256104</guid>
					<title><![CDATA[Reply To: How to add php code in single page?]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-add-php-code-in-single-page/#post-256104</link>
					<pubDate>Wed, 22 Apr 2015 21:04:24 +0000</pubDate>
					<dc:creator>Friech</dc:creator>

					<description>
						<![CDATA[
						<p>Hi There,</p>
<p>Glad it worked! Try to wrap it with a container.</p>
<pre><code>&lt;?php
/* 
Template Name: File Manager
*/
include_once(&#039;/home4/n2outlaw/public_html/taurusoutlaw.com/to-fm/class/FileManager.php&#039;);
?&gt;

&lt;?php get_header(); ?&gt;

 &lt;div class=&quot;x-container max width offset&quot;&gt;
  &lt;div class=&quot;x-main full&quot; role=&quot;main&quot;&gt;

&lt;?php

$FileManager = new FileManager();
print $FileManager-&gt;create();

?&gt;
  &lt;/div&gt;
  &lt;/div&gt;

&lt;?php get_footer(); ?&gt;</code></pre>
<p>Hope it helps, Cheers!</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

