Hello and firstly great Thanks for Tweme!

I can't add a region into node.tpl.php in tweme:

  1. In tweme.info:
    regions[content_below] = Below node
  2. In template.php:
    function _tweme_preprocess_node(&$vars) {
    if ($blocks = block_get_blocks_by_region('content_below')) {
      $vars['content_below'] = $blocks;
      $vars['content_below'] = $blocks;
      $vars['content_below']['#theme_wrappers'] = array('region');
      $vars['content_below']['#region'] = 'content_below';
      }
     }
  3. In node.tpl.php:
    <?php print render($content_below); ?>
    (after such code:
    <?php
          // We hide the comments and links now so that we can render them later.
          hide($content['comments']);
          hide($content['links']);
          print render($content);
        ?>

So no errors, but also no region on any node page.

I tried adding
<?php print render($page['content_below']); ?>
and
<?php print render($content['content_below']); ?>

It works in two other themes.

Comments

kaztur’s picture

Status: Active » Fixed

Solved!

I made the same changes in files inside Bootstrap theme

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.