WordPress.org

Ready to get started?Download WordPress

Forums

SimpleMap Store Locator
how to change 'ZIP' field label (6 posts)

  1. tallhat
    Member
    Posted 1 year ago #

    hi, where is this text set? i'm in the UK and want it to say 'Postcode'

  2. prasann
    Member
    Posted 1 year ago #

    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

  3. emmavix
    Member
    Posted 1 year ago #

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

    Thanks

  4. harryvl
    Member
    Posted 1 year ago #

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

  5. emmavix
    Member
    Posted 1 year ago #

    Thanks, now sorted.

  6. TakeoK
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.