How to bring the title before the image in article page?

+1
0
-1

Hi,

I want to bring the article title before the image in article page .

Help us to find the solution .

Thanks

+1
0
-1

Hi sangeethk,

You should take a look at the function tb_wall_preprocess_node inside template.php. Notice code from line 73 to 82:

  $vars['tb_wall_first_field'] = false;
  foreach($vars['content'] as $key => $field) {
    if (isset($field['#field_type']) 
      && isset($field['#weight']) 
      && ($field['#field_type'] == 'image' || $field['#field_name'] == 'field_vimeo' || $field['#field_name'] == 'field_youtube' || $field['#field_name'] == 'field_video' || $field['#field_name'] == 'field_media')) {
      $vars['tb_wall_first_field'] = drupal_render($field);
      unset($vars['content'][$key]);
      break;
    }
  }

Kind regards,
Will