Content Block Title


Author Message
Andrew

Posted: 7/25/2011
Quote message 

Using drupal 7, I am having an issue when placing a block in the "content" section of my website. The block title is unformatted for some reason....if I place the block in the left sidebar then the block if formatted correctly.

Also, if I place the block in any of the banner sections it is still unformatted.

Any advice on this? I've looked into the block.tpl.php, and css file and am not sure where the error is
 
Colin

Posted: 8/30/2011
Quote message 

I'm having the same issue. Is there a workaround for this problem?
:-@
 
Robert

Posted: 8/30/2011
Quote message 

I have a workaround for the problem.

The $block->subject is output in block.tpl.php.

In block.tpl.php change line 21 from


<?php echo $block->subject; ?>


to:


<?php echo "<div class=\"custom-block-subject\">".$block->subject."</div>"; ?>


Then in style.css you can define the custom-block-subject class with the properties that you want.


.custom-block-subject {
font-size: 25px;
}


Regards,