Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter joser

    (@joser)

    done now

    Please tell me how u did it…and is there any way that in the search form there is only zip post code option is there…and categories are shown as drop down menu

    Thanks in advance

    Thread Starter joser

    (@joser)

    Hello

    if you go to your plugin folder go to inc go to sytles and then light.css (if you are using the dark css, use dark.css)

    You then modify light.css to your needs.

    You need to modify:

    #map_search, #simplemap

    Also you need to modify this one #simplemap-updating, so the loading matches your #simplemap

    I am sorry but I don’t understand what you mean about the search form and the zip post code option…can you explain a bit further?

    Cheers

    Thank u very much for fast reply….
    what i exactly want..Is like in the form there are fields like city , state , street , zip. etc etc..So now what i want is that i want to show only ZIP/POST CODE field…

    SEcond thing..If we are creating Categories for locations.. I want them to display in drop down list not as Check box field…

    Now i think u can help me out..
    I will be really thankful to you

    Looking forward to your response

    Thread Starter joser

    (@joser)

    no problems

    I understand now, if you just want to display just the Zip field, go to to the plugin folder, then classes and then simplemap.php

    Locate

    // Normal Field inputs
    $ffi[‘street’] = array( ‘label’ => apply_filters( ‘sm-search-label-street’, __( ‘Street: ‘, ‘SimpleMap’ ), $post ), ‘input’ => ‘<input type=”text” id=”location_search_address_field” name=”location_search_address” value=”‘ . esc_attr( $address_value ) . ‘” />’ );
    $ffi[‘city’] = array( ‘label’ => apply_filters( ‘sm-search-label-city’, __( ‘City: ‘, ‘SimpleMap’ ), $post ), ‘input’ => ‘<input type=”text” id=”location_search_city_field” name=”location_search_city” value=”‘ . esc_attr( $city_value ) . ‘” />’ );
    $ffi[‘state’] = array( ‘label’ => apply_filters( ‘sm-search-label-state’, __( ‘State: ‘, ‘SimpleMap’ ), $post ), ‘input’ => ‘<input type=”text” id=”location_search_state_field” name=”location_search_state” value=”‘ . esc_attr( $state_value ) . ‘” />’ );
    $ffi[‘zip’] = array( ‘label’ => apply_filters( ‘sm-search-label-zip’, __( ‘Zip: ‘, ‘SimpleMap’ ), $post ), ‘input’ => ‘<input type=”text” id=”location_search_zip_field” name=”location_search_zip” value=”‘ . esc_attr( $zip_value ) . ‘” />’ );
    $ffi[‘country’] = array( ‘label’ => apply_filters( ‘sm-search-label-country’, __( ‘Country: ‘, ‘SimpleMap’ ), $post ), ‘input’ => ‘<input type=”text” id=”location_search_country_field” name=”location_search_country” value=”‘ . esc_attr( $country_value ) . ‘” />’ );
    $ffi[’empty’] = array( ‘label’ => ”, ‘input’ => ” );
    $ffi[‘submit’] = array( ‘label’ => ”, ‘input’ => ‘<input type=”submit” value=”‘ . apply_filters( ‘sm-search-label-search’, __(‘Search’, ‘SimpleMap’), $post ) . ‘” id=”location_search_submit_field” class=”submit” />’ );
    $ffi[‘distance’] = $this->add_distance_field( $radius_value, $units );

    and comment out (or delete) the fields that you don’t want to

    I can’t remember but since I think since it is using a table for displaying this fields, you need to play with the CSS as well

    I didn’t want any categories so I commented out that field, but I assume what you need to do is go to the simplemap.php and write the code for the downdown list instead of box field

    Cheers

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Changing the order of the map and the search box’ is closed to new replies.