I can't view my Block title with my custom made theme.

crazyben21 - November 7, 2009 - 15:16

Hi, I created a theme based on Xhtml layout I was working on. I used the bluemarine theme. Change some things around like remove some unnecessary class my xhtml layout didn't use and conflicked with. But when I use it with drupal I can't see the block title. I don't why that is happening but when I change to a different theme I see the block title so i know there is something wrong with my code. If need my code to assist me ask and I send it to you. I copied some code from bluemarine page.tpl.php to mt page.tpl.php.

http://drupal.planetbentech.com/

Thank You
Benjamin

What does your themes

nevets - November 7, 2009 - 15:31

What does your themes block.tpl.php look like?

It looks like this: <?php//

crazyben21 - November 7, 2009 - 18:03

It looks like this:

<?php
// $Id: block.tpl.php,v 1.3 2007/08/07 08:39:36 goba Exp $
?>

  <div class="box block-<?php print $block->module; ?>" id="block-<?php print $block->module; ?>-<?php print $block->delta; ?>">
    <?php if (!empty($block->subject)): ?>
      <h2><?php print $block->subject ?></h2>
    <?php endif;?>
    <div><?php print $block->content; ?></div>
</div>

if I take the if statement for my h2. The border I have for my h2 shows up but not the title. I have a border-top and border-bottom.

I think I'm having the same problem

crazyben21 - November 7, 2009 - 18:41

I'm having the same problem as this thread. going to try creating a new bloack to see.

http://drupal.org/node/162899#comment-876426

Look at number 9#

Yeah. Same problem and

crazyben21 - November 7, 2009 - 18:46

Yeah. Same problem and verified. I'm using the latest 6.14

I made the title reappear.

crazyben21 - November 7, 2009 - 18:51

I made the title reappear by changing the block setting to a different setting and changing back to the original settings. And yes i did try clearing the cache before and it didn't work.

Thank You.
Benjamin

 
 

Drupal is a registered trademark of Dries Buytaert.