Create a wrapper div within field groups on node displays For ease of formatting I would like to add an inner wrapper div inside of field groups displaying on content nodes and node forms. I'm using the Field Group module to display groups in div format.

Currently it's this:

&lt;div class="field-group-format group_user field-group-div group-user required-fields  speed-fast effect-none"&gt;
…
&lt;/div&gt;


Would like to output this:

&lt;div class="field-group-format group_user field-group-div group-user required-fields  speed-fast effect-none"&gt;
&lt;div class="inner"&gt;
 … 
&lt;/div&gt;
&lt;/div&gt;
Try hook_field_group_build_pre_render_alter() since node content solution seems not longer working.

/**
 * Implements hook_field_group_build_pre_render_alter().
 * Adds additional wrappers
 */
function [your_theme_or_module_name]_field_group_build_pre_render_alter(&amp;$element) {
  if (!empty($element['group_tabs'])) {
    $element['group_tabs']['#prefix'] = '&lt;div class="field-group-container"&gt;';
    $element['group_tabs']['#prefix'] .= '&lt;div class="field-group-row"&gt;';
    $element['group_tabs']['#suffix'] .= '&lt;/div&gt;&lt;/div&gt;';
  }
}


Check Field group for developers for more info.