Skip to main content
2 of 5
added 373 characters in body
Jack-PL
  • 2.6k
  • 2
  • 22
  • 27

Yes, you can do that with preprocess_block() function.

just define title prefix and suffix.

For example:

/**
 * Override or insert variables into the block template.
 */
function YOURTHEME_preprocess_block(&$variables) {

  // all block titles in the content region will be wrapped in envelope icon
  if ($variables['block']->region == 'content') {  
    $variables['title_prefix'] = '<i class="icon-envelope">';
    $variables['title_suffix'] = '</i>';
  }
}

also you can do that in block template file using for example block--region.tpl.php

Jack-PL
  • 2.6k
  • 2
  • 22
  • 27