How to do this please?
Hi,
I have a child theme that I am using for mysite.com which is uses classipress 3.2 as parent theme and multisite subdomain set up.
Within this child theme I have created a new php file called newlayout.php
I call this on the main page of mysite.com by using this code in the index.php file
Code:
<?php
if ( file_exists(STYLESHEETPATH . '/newlayout.php') )
include_once(STYLESHEETPATH . '/newlayout.php');
else
include_once(TEMPLATEPATH . '/newlayout.php');
?>
This works fine on the main site mysite.com but the problem is it is also trying to output the content of newlayout.php to another site (a subdomain of mysite.com)and gives errors saying this file doesn't exist. This subdomain is also using classipress as a parent theme with no child theme. Just the bog standard classipress default theme.
How can I only show the content contained within the newlayout.php on the mysite.com site and not have it try to show on any other subdomain site at the same time.
Can I use something based on displaying specific content based on blog id and if so how would I go about implementing this?
Kind regards
Bleem