Thanks for the great theme. I have created a subtheme of Genesis and have been happily styling it out. However, I wanted to add the 4 column Gpanels to the footer region. I read the documentation and here are the steps I have done to try to place the GPanels in the footer:

  1. Pasted the 4 column GPanel code from 4col-4x25.php into MyTheme/templates/page.tpl.php. Here is the code in my page.tpl.php:
    <?php if ($page['footer'] || $feed_icons): ?>
          <div id="footer">
         
          <!-- Four column Gpanel -->
          <?php if ($page['four_first'] || $page['four_second'] || $page['four_third'] || $page['four_fourth']): ?>
            <div class="four-4x25 gpanel clearfix">
              <?php print render($page['four_first']); ?>
              <?php print render($page['four_second']); ?>
              <?php print render($page['four_third']); ?>
              <?php print render($page['four_fourth']); ?>
            </div>
          <?php endif; ?>   
        
            <?php print render($page['footer']); ?>     
            <?php print $feed_icons; ?>
          </div>
        <?php endif; ?>
  2. Uncommented the 4 col Gpanel in MyTheme.info file
      ; 4 col 4 x 25
      regions[four_first]  = GP 4 x 25% - First
      regions[four_second] = GP 4 x 25% - Second
      regions[four_third]  = GP 4 x 25% - Third
      regions[four_fourth] = GP 4 x 25% - Fourth
  3. Also uncommented the following in MyTheme.info
    ; Uncomment if using Gpanels.
      stylesheets[all][] = css/gpanels/gpanels-fluid.css
  4. Cleared the cache
  5. I could see the GPanels in my blocks configuration, so I moved four blocks that had previously been in the footer into each of the 4 Gpanels blocks (see screenshot)

The blocks that I moved from the footer into the GPanel regions just disappeared - they aren't being displayed on the page anywhere, and when I view the source of the page the blocks are nowhere to be found. I have cleared my cache as well to no avail. Am I missing something?

CommentFileSizeAuthor
Block Configuration48.25 KBkbrinner

Comments

Jeff Burnz’s picture

Well, you have this all inside...

if ($page['footer'] || $feed_icons):

So if there is no feed icon or no block in the footer region, then nothing can appear. I can see from the screen shot you have no blocks in footer.

Remove that conditional wrapper and all will be well.

kbrinner’s picture

Thanks Jeff - (I feel silly for missing this). I use Adaptive Theme and Genesis - they're both great, so thanks for your contributions and help.

kbrinner’s picture

Status: Active » Closed (works as designed)