Improving Search results page

This topic contains 7 replies, has 4 voices, and was last updated by  Kiran 4 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #519535

    Matthew
    Lifetime Member
    Post count: 178

    Hi The current search results page returns..

    “No listings were found matching your selection. Something missing? Why not add a listing?.”

    This is a turn-off for visitors. I wondered if it would be possible to feature the categories on this page in the hope that we can increase the chances of keeping the visitor on the website by prompting them to explore further?

    Any thoughts?

    #519539

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    You can change that text using translation: https://wpgeodirectory.com/docs-v2/translation/overview/

    I will flag your question for the developers in case they have another idea.

    #519541

    Matthew
    Lifetime Member
    Post count: 178

    Thanks Alex

    I think the text is ok, we need something more visual, like category icon buttons.

    Also on that page the map shows and very bleak looking empty ma (attached)

    It would be great if it could instead show the populated map with markers that is displayed on this page: /search/ and also attached.

    This would prompt visitors to explore further and underline that there are many listings on the website to be explored.

    Would it be possible for me to make this change to show the populated map?

    #519556

    Alex Rollin
    Moderator
    Post count: 27815

    There isn’t an option for that at the moment. I will take this up as a suggestion and ask the developers if this is something we can work on in the near future.

    #519724

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Matthew,

    I personally think, if anyhow any search criteria is empty in result. populating map with all categories balloons can mislead a user.

    there are several other ways to target users to other categories like adding widgets in sidebar or footer sidebars.

    I will pass this to other senior developers just to know what they think for it.

    Thank

    #519843

    Kiran
    Moderator
    Post count: 7069

    Hi Matthew,

    Try following PHP snippet to show default map markers on empty search results.

    
    
    /**
     * Show default map markers on empty search results.
     */
    function gd_snippet_191204_map_params( $params, $map_args ) {
    	if ( geodir_is_page( 'search' ) ) {
    		if ( isset( $params['posts'] ) && ! is_array( $params['posts'] ) && (int) $params['posts'] == -1 ) {
    			$params['posts'] = 'geodir-loop-container';
    		}
    	}
    	return $params;
    }
    add_filter( 'geodir_map_params', 'gd_snippet_191204_map_params', 20, 2 );

    Regards,
    Kiran

    #519850

    Matthew
    Lifetime Member
    Post count: 178

    Hi @Naveen – yes that is possible, But if the visitor then browsers further pages as a result then that is positive. I think anything will improve the current empty page.

    @kiran I did try adding that but it didn’t work I am afraid. But thanks anyway.

    #519854

    Kiran
    Moderator
    Post count: 7069

    Hi Matthew,

    Provide us a site link, admin credentials & FTP credentials to look into there.

    Thanks,
    Kiran

Viewing 8 posts - 1 through 8 (of 8 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket