• Resolved shomee

    (@shomee)


    I want to change the label of ‘locations’ in the search results page where it shows “Showing 1 – 20 of 43 locations”. I’ve searched through the plugin editor but cannot find this. Thanks.

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

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

    (@ninjew)

    Hello @shomee,

    Please add the script below to the functions.php file of your theme and change “locations” in the script as you wish.

    
    function gmw_custom_modify_results_message( $args ) {
    
    	$args['count_message']        = 'Viewing {from_count} - {to_count} of {total_results} locations';
    	$args['single_count_message'] = '1 locations found';
    	$args['all_results_message']  = 'Showing all {total_results} locations';
    
    	return $args;
    }
    add_filter( 'gmw_results_found_message', 'gmw_custom_modify_results_message', 90 );
    

    Let me know if this helps.

    Thread Starter shomee

    (@shomee)

    Yes it did! Thank you.

    Plugin Author Eyal Fitoussi

    (@ninjew)

    You are very welcome @shomee.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to change label of “locations”’ is closed to new replies.