Block hidden after publish without using nbsp in block above

Permalink
Hello,

I am using the Bootstrap theme from Hostco. I am trying to learning how to modify page types. I wanted to make a minor modification of the Home2 page type.

I carefully followed the Bootstrap documentation and customized the page type and activated to my theme.

I was able to switch my page to my new Home2 page type.

I added content to the two additional grids/sections I created under the "bs-docs-social" section.

When I published my page the content in this new section vanished.

The only way I am able to see my additional content I added into the new row is by adding a   to the container row directly above this.

Here is the source from my test page:
<div class="bs-docs-social">
  <div class="container">
<div id="HTMLBlock79" class="HTMLBlock">
 </div>   <div class="clearfix"></div>
   <div class="row-fluid">
      <div class="span9">
    <h4>About Us</h4>
<p>The . . . is a nonprofit who mission is to foster, develop and deliver programs and services that encourage and facilitate people fifty-five years of age and over to sustain independent, healthy and active lifestyles and to strive to enhance their interest and participation in community activities.</p>       </div>
      <div class="span3">
    <p><button class="btn btn-large" type="button">Donate Now</button></p>   
       </div>
    </div>
  </div>
</div>


Here is the PHP section I modified:
<?php  
$a = new Area('Social Links');
$c = Page::getCurrentPage();
if (($a->getTotalBlocksInArea($c) > 0) || ($c->isEditMode()) ) {
?>
<div class="bs-docs-social">
  <div class="container">
   <?php                
   $a->display($c);
   ?>
   <div class="clearfix"></div>
   <div class="row-fluid">
      <div class="span9">
    <?php 
      $a = new Area('Social Links 1');


Since this is my first attempt at building a custom page type I thought I may have made a mistake with my PHP.

Does anyone know why this content would be visible in page edit, yet hidden after publishing when I don't have a   placeholder?

Thanks in advance,

SteadyIT
 
SteadyIT replied on at Permalink Reply
SteadyIT
bump!