WordPress.org

Support

Support » Plugins and Hacks » how to change 'ZIP' field label

how to change 'ZIP' field label

Viewing 5 replies - 1 through 5 (of 5 total)
  • I have changed same things. You have to edit

    simplemap.php

    file in line 216. check by below code.
    $ffi[‘zip’] = array( ‘label’ => apply_filters( ‘sm-search-label-zip’, __( ‘Postcode: ‘, ‘SimpleMap’ ), $post ), ‘input’ => ‘<input type=”text” id=”location_search_zip_field” name=”location_search_zip” value=”‘ . esc_attr( $zip_value ) . ‘” />’ );
    I hope this one is work for you.

    cheers

    I can’t find this line in the above field, can anyone else help?

    Thanks

    it’s the classes/simplemap.php file not the main simplemap.php one.

    Thanks, now sorted.

    Would be preferable of course to find out how to do this (with a filter or something) so we don’t have to hack the plugin (you’ll lose you hack if you ever update). But oh well. I couldn’t figure out a way so I’m also just hacking it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘how to change 'ZIP' field label’ is closed to new replies.