Skip Navigation

[Resolved] do not display Post Title until they perform a search

This support ticket is created 8 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 21 replies, has 2 voices.

Last updated by Minesh 8 years ago.

Assisted by: Minesh.

Author
Posts
#376182

It's still doing the same thing.

#376183

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Sorry - file was not properly uploaded.

Please check - I've tested now and its working as you desired.

#376665

Hi that was done thanks, but now if they enter anything wrong they don't get any message. Since I Deleted the message "No results found". Is there is any way I can display the text only when they entered wrong.

Thanks,

#376685

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I've added following jQuery code to your views JS box.

jQuery(document).ready(function($){
  xx = document.location.search.length;
  if (xx == 0){
    $('#no_results').hide();
  }
});
#377296

Hi Just came across a one more problem, If I'm searching BMO which is not a part of that post type and result not found doesn't shows up... which should show because, It's not part of that post type. Can you please look into this thanks..

#377496

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Could you please check now,

I've checked with almost all combinations and its working now.

Modified JS box code:

yy = $('#your_content div.olhi-accordion').length;
   if(xx !== 0 && yy===0){
    $('#your_content').html("<strong> No Results found </strong>");
   }
#378772

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I hope this thread is resolved now.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.