How to add outer div to Profile2 profile including link set in #prefix I would like to add a wrapper div around Profile2 profiles when displayed on the user account page. I can wrap the title and profile fields by modifying user-profile-category.tpl.php in my theme. However, there's an anchor link to each profile added in profile2.module using hook_user_view: '#prefix' =&gt; '&lt;a id="profile-' . $profile-&gt;type . '"&gt;&lt;/a&gt;',. 

I can't find a template that will allow me to wrap that link along with its accompanying profile. How can I theme those items together?
The Profile2 modules implements a profile2_form_alter hook that you can implement in a module. Say you have a module called kelley_profile2, then the function you want to implement is

/**
 * Implements hook_form_profile2_form_alter().
 */
function kelley_profile2_form_profile2_form_alter(&amp;$form, &amp;$form_state) {
  // Check profiles key exists in $form_state.
  if (array_key_exists('profiles', $form_state)) {
    // Iterate through each profile type and add prefix.
    foreach ($form_state['profiles'] as $type =&gt; $profile) {
      $form['profile_' . $type]['#prefix'] = '&lt;a id="profile-' . $type . '"&gt;&lt;/a&gt;';
    }
  }
}