Editable regions not appearing

Permalink
Hi everyone,

I'm new to Concrete5 and I'm having an issue with my first site. I built my own custom theme and it was working perfectly on my localhost WAMP server. I uploaded the theme onto an installed version of Concrete5 and everything seemed to be going well. At least until I got to the point where I needed to edit some of my content on the home page. I have five editable regions that are not showing up at all and I'm not sure what the issue is. Here are the five regions from my default.php that aren't showing up at all. (Main & sidebar are showing up, fyi).

<div id="shout-box">
    <div id="shout-line">
      <div class="fourteen columns offset-by-two">
          <?php  $a = new Area('ShoutLine'); $a->display($c); ?>
      </div>
   </div>
      <?php  $a = new Area('ShoutImg'); $a->display($c); ?>
</div>
        <hr>
      <div class="one-third column">
        <div class="fancy-box">
         <?php  $a = new Area('Grid1'); $a->display($c); ?>
        </div>
      </div>
      <div class="one-third column">


and

<div class="advertisement-box"><h2>Advertisement</h2>
          <?php  $a = new Area('Advertisement'); $a->display($c); ?>
        </div>


Any ideas how I can rectify this and get my editable regions to show up? My site ishttp://www.cftfpaper.com/

Any help is appreciated

 
cubewebsites replied on at Permalink Reply
Your code looks fine. The only thing I can think perhaps is that the $c variable has been overridden.

Above the code that you just pasted, try adding this:
<?php $c = Page::getCurrentPage(); ?>
Stax replied on at Permalink Reply
I tried adding it and refreshing the browser and Concrete5 cache. No luck.

Earlier today I had the shoutbox & shoutline showing up on the home page but I realized that I accidentally left those two regions in my left and right sidebar pages. I went to remove them from both since they weren't supposed to be on those pages and when I came back to the home page the shoutbox, shoutline was gone. I believe there is possibly some correlation between those.
Stax replied on at Permalink Reply
I just made a strange breakthrough. For some reason my home page is using the right_sidebar page type instead of default. How can I rectify this?
stretchrt replied on at Permalink Best Answer Reply
stretchrt
Obviously at some point your home page was set to use the right_sidebar page type. Default.php is only used if a given page does not have a page-type assigned.
As far as I am aware, there is no way to"un-assign" a page-type from a page.
Best practise is that you define a page-type for all your pages anyway, so if you want a page type that you just use for your home page, you could just make a copy of default.php and call it homepage.php, then change your homepage so that it uses the homepage page type.