Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If I don't specify title for a block, then the code looks like this:
[...]
[...]
But h2.title has 1px solid border, so a narrow empty box will appear above a block which has no title.
Comments
Comment #1
Bence CreditAttribution: Bence commentedOops :) So the code look like this:
Comment #2
jwolf CreditAttribution: jwolf commentedSolution is to edit block.tpl.php as follows:
Note the:
Comment #3
prfctgdess CreditAttribution: prfctgdess commentedOK, this may sound dumb, but I'm a Drupal newbie, so please bear with me. :P
I'm having this problem too, and I understand your solution, but where do I find block.tpl.php? I can't seem to find it! Thanks.
Comment #4
jwolf CreditAttribution: jwolf commentedblock.tpl.php is located in the theme's directory; it came with the theme.
Comment #5
jefftrnr CreditAttribution: jefftrnr commentedI believe another solution is to put the string
<none>
within the block title field, if you don't want to show the title.Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedPutting < does not work for me..
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedThe Solution provided by Jwolf worked perfectly.
Thanks
Comment #8
sk33lz CreditAttribution: sk33lz commentedAdded jwolf's code in #2 to 6.x-1.x-dev, and will also be available in 6.x-1.4 release.
Comment #9
sk33lz CreditAttribution: sk33lz commented