After creating a dynamic block I need to print block title in specific div or customize it to add css class . Please check image for more details

enter image description here


To add classes to block you can use below module:


To add class to block title there is similar question before:

Adding classes to block title


  • thanks bro, solved by @block.tpl.php <section id="<?php print $block_html_id; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>> <?php print render($title_prefix); ?> <?php if ($title): ?> <div class="section-title"> <h2<?php print $title_attributes; ?> > <a href="#"> <?php print $title ?></a> </h2> </div> <?php endif;?> <?php print render($title_suffix); ?> <?php print $content ?> </section> because after adding css from block configuration interface mini tags distorted in this case thanks U – Mohamed Hafez Abdallah Aug 28 '15 at 19:03
  • @MohamedHafez not a problem :) – jas Aug 28 '15 at 19:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.