• I have a Real Estate website with a plugin from my IDX provider, IDX Co.

    Generally I have no issues, this is just an annoyance I want to eradicate to give my users a better experience.

    IDX provide a widget (script) which is a Showcase of homes that match a particular search criteria. Obviously sometimes no homes match the particular search criteria at any given time. In this instance the script displays nothing. This page is an example.

    What I would love to do is ‘do something’ if the script results are blank. Initially this could be as simple as a piece of text saying ‘No Homes Match the Search Criteria’.

    Any help would be appreciated, Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello, just checked your website,

    Actually, this page displays many things / flats, real estate so on, no blank page on my end?

    Thread Starter kevin1958

    (@kevin1958)

    No, the pages are not blank, the script results are. Under each Header is a script. example 222 Glenwood has current listings so the script has returned the showcase. Bishops Gate has no current listings so produces no showcase, this is where I want to put the ‘No Homes…’ text.

    Okay, I get it,

    Well depending how template is built, you can add a class to php for example, saying if no results, display this. To replace for example “Full Caraleigh Mill Listings” with “No results for this city” or something.

    To answer your first question, it’s a bit of front-end design work, yes. Some tweaking on your template. Nothing a good freelancer can’t beat though.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Script Results are Blank’ is closed to new replies.