Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Gravity Forms Custom Templates

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #144080
    realph
    Participant

    Im trying to further customise my Gravity Forms “Address” labels. At the moment they read “Street Address”, “City” and “ZIP / Postal Code”.

    I, for example, want to change “ZIP / Postal Code” to “Post code”. Does anyone know if you can use templates to override these values in your theme without messing up the core GF files?

    common.php seems to be the place where these values are stored:

    public static function get_address_types($form_id){

    $addressTypes = array(
    “international” => array(“label” => __(“International”, “gravityforms”),”zip_label” => apply_filters(“gform_address_zip_{$form_id}”,apply_filters(“gform_address_zip”, __(“ZIP / Postal Code”, “gravityforms”), $form_id), $form_id),”state_label” => apply_filters(“gform_address_state_{$form_id}”,apply_filters(“gform_address_state”,__(“State / Province / Region”, “gravityforms”), $form_id), $form_id)),
    );

    return apply_filters(“gform_address_types_{$form_id}”, apply_filters(“gform_address_types”, $addressTypes, $form_id), $form_id);
    }

    Any help would be appreciated. Thanks in advance.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.