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.
hello
I try to overide the theme of a specific block or blocks in a specific region
: then i create a block--simplenews.tpl.php for example in a template folder of the subtheme, and the display is correct but the title disappear ?
with the error bellow
any idea , of my mistake ?
<div class="top-wrapper">
<div class="left"></div>
<div class="right"></div>
<div class="middle"><span></span></div>
</div>
<section id="<?php print $block_html_id; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
<?php print render($title_prefix); ?>
<?php if ($title): ?>
<h2<?php print $title_attributes; ?>><?php print $title; ?></h2>
<?php endif;?>
<?php print render($title_suffix); ?>
<?php print $content ?>
</section> <!-- /.block -->
<div class="bottom-wrapper">
<div class="left"></div>
<div class="right"></div>
<div class="middle"><span></span></div>
</div>
Comments
Comment #1
phildu CreditAttribution: phildu commentedComment #2
neardark CreditAttribution: neardark commentedHi Phildu -
I just tried reproducing your issue and wasn't able to see the error. I started with a fresh install of Drupal with bootstrap, added simplenews, created a Bootstrap subtheme, copied the block template from the bootstrap theme to the subthemes template directory, renamed it block--simplenews.tpl.php and added some markup -- and it shows fine without error. I'm at a loss.
John
Comment #3
markhalliwell