• Resolved crobley

    (@crobley)


    On my twenty eleven theme I have in my header:

    <?php
          if ($firstURIvar != ''){
    	include("inc_topcontent.php");
          } else {
    	include("inc_home.php");
    }
    ?>

    This is the same code I use in all my wordpress sites to have it so the home page uses one include while all other pages will use a different include file. When I use this code it just uses inc_home.php for ALL pages.

    The only thing I can think is that this isn’t working because I’m now using twenty-eleven and not twenty-ten.

    The website url looks like this: https://www.websitename.com/newsite/
    Which is the home page. Content pages look like https://www.websitename.com/newsite/about

    Any ideas?

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Determining Home Page and Content Pages Twenty Eleven’ is closed to new replies.