Results 1 to 2 of 2

Thread: How to do this please?

  1. #1
    Thread Starter
    Veteran bleem's Avatar
    Join Date
    Feb 2012
    Posts
    1,571
    Thanks
    103
    Thanked 205 Times in 180 Posts

    Question 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

  2. #2
    Thread Starter
    Veteran bleem's Avatar
    Join Date
    Feb 2012
    Posts
    1,571
    Thanks
    103
    Thanked 205 Times in 180 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)