Drupal 7 field module defines a field level template file, which defines the HTML structure of the field. We can use this file to override the display of field including changing how label will be display. The file is named as field.tpl.php which you can find in side the "DRUPAL_ROOT/modules/field/theme/" directory. How to use this file:
  • You can simply copy this file from above directory and paste inside the templates directory of your enabled theme.
  • After you've copied this file to your theme directory, clear cache.
Below is the code from template file:
<?php if (!$label_hidden): ?>
  <div class="field-label"<?php print $title_attributes; ?>>
    <?php print $label ?>: 
  </div>
<?php endif; ?>

Below is the code after removing colon after label:
<?php if (!$label_hidden): ?>
  <div class="field-label"<?php print $title_attributes; ?>>
    <?php print $label ?> 
  </div>
<?php endif; ?>

NOTE: field.tpl.php file is not used and is here as a starting point for customization only.

Reference:

Submitted by ychaugule on