• Resolved lit1350

    (@lit1350)


    Need to have category drop down show first and then address in the form search. Also need to remove the numbers that show with results. Any help appreciated!

    • This topic was modified 4 years, 1 month ago by lit1350.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Eyal Fitoussi

    (@ninjew)

    Hello @lit1350,

    1. Below is a small Javascript that will place the categories before address field. You can use the script by adding it to the functions.php file of your theme.

    
    function gmw_move_taxonomies_before_address_field() {
    
    	?>
    	<script type="text/javascript">
    		jQuery( '.gmw-search-form-taxonomies' ).detach().insertBefore( '.gmw-address-field-wrapper' );
    	</script>
    	<?php
    }
    add_action( 'wp_footer', 'gmw_move_taxonomies_before_address_field' );
    

    That is a quick way to do it.

    A better approach would be to create a custom search form template file that will be placed in your theme’s folder then modify it by moving the function that generates the categories before the address field.

    This forum reply explains how to create a custom search form/results template files.

    2. to remove the number from the search results you can either select a different search results template file ( not all template files have the numbers show ) or you can create a custom search results template file ( as described in number 1 above ) and remove the function that generates the number from it.

    I hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Change search form order’ is closed to new replies.