modify search result page

This topic contains 3 replies, has 3 voices, and was last updated by  mike wilderman 5 years, 3 months ago.

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #468259

    mike wilderman
    Free User
    Post count: 6

    hello,

    I am trying to modify search result page to display a custom message and show recent posts if no result found. Not sure which file I should modify? The only file I think I might be able to work with is geodir-search.

    Also, is there a way not to show all results if nothing enter on the search form?

    Last, I noticed the search right sidebar is always below the search result. Is this by design? I thought the right bar should be on the right side of the search result. not right side after search result. This goes to left side bar as well.

    Thanks.

    #468274

    Kor
    Moderator
    Post count: 16516

    Hi Mike,

    Thanks for your post. Normally, if the search returns no results, it will display “No listings were found matching your selection.” You can change the texts by using the translation method https://wpgeodirectory.com/docs/category/translation/ .

    Could you share your Website URL here so that I could check why the sidebar is displaying incorrectly?

    #468303

    Alex Rollin
    Moderator
    Post count: 27815

    You should consider upgrading to GDV2, which has been released and will be available on wp.org shortly. For now you can download it here:

    https://wpgeodirectory.com/try-geodirectory-v2/

    With GDV2 you can actually edit the contents of the search page template, a simple WP page. You can add shortcodes to it, for example, or some custom shortcode you make yourself that displays only if there are no results.
    https://wpgeodirectory.com/docs-v2/geodirectory/page-design/

    #468371

    mike wilderman
    Free User
    Post count: 6

    Hello Alex and Kor,

    thanks for your responses. You guys are amazing. I don’t have a website. The reason I am looking into your product because a friend of mine is asking my help to create an event page for his website. I am doing reach and I think your product is robust and satisfy his requirements. Not to mention your prompt support. 🙂

    You are right, the search will return “No listings were found matching…” However, I did click on the search button without any search string (empty). it will (I think by default) return all listing. I don’t know how many it returns as I only created 2 records for testing. I think it should not return any values if the search field is empty. If I do use your product, I will need to modify the codes to display custom message or/and return other information. This is why I was asking if you have any template that I can modify.

    For the sidebar, I added a latest post widget on the right sidebar. When I click search with invalid word like testing, it returns “no listing were found….” however, the latest posting widget will display on bottom right side of the webpage. It seems like the “no listing were found” message width is 100%.

    I will look into V2 as I will recommend my friend to purchase the event module once I figure out how the event works with the GD core. Overall a very solid product. Good jobs !

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

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

Open Support Ticket