I want to remove the title from a block or even all blocks (whichever is easist). How do you do this. I searched through this site and this is obviously a common issue but the posts seem to only contain fixes to versions prior to 5.0.

Thanks,
Brett

Comments

sepeck’s picture

Go to admin >> site building >> blocks
click configure and read the line underneath Block titles.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

Cablestein’s picture

Sometimes you have to go back to that config page and hit 'Save' again. Even though I had in my title for a year in a half, the title was showing in a new theme I was designing. After hitting 'Save' again on that block config page, the title disappeared.

jphelan’s picture

Or if you want to remove the title from all blocks at once.

edit the block.tpl.php file in your template folder and comment out or remove this line:

<?php if ($block->subject): ?>
  <h2><?php print $block->subject ?></h2>
<?php endif;?>
sepeck’s picture

In 5.0 You can do this through the blocks configuration menu. No need to edit the template for it.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

hotcoder’s picture

Go to Administer -> Site Building -> Blocks
Click the configure link of specific block and in title write and save configuration.

------------------
Muhammad Daud

dianacastillo’s picture

you have to write none when you configure the block title .

Diana Castillo

hexag’s picture

Hi guys, when I remove the block title through the configuration page, the mainbody displaces the content to the right, like this...

http://img527.imageshack.us/my.php?image=displacedmainbodyvd2.jpg

Any ideas??

hotcoder’s picture

I think there is css property "float:right" applied, handle it.
------------------
HotCoder

lucas1964’s picture

Go in the admin>Site Building>Blocks>Text Resize and in the Block Title insert < none > without blank

yog_kulkarni’s picture

I kept the Block title blank and it worked. Block title is not a mandatory field.

dickshelly’s picture

Simply put <none> in drupal 7

aishwary singh’s picture

Just save the block with title <none>.