Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide members on members page until search is performed


  • mikelast
    Participant

    @mikelast

    Hi guys, I am looking for a way to hide members from the members page until someone performs a search. I then want only those users mathing the search term to appear

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

  • Prashant Singh
    Participant

    @prashantvatsh

    You can write this css code:

    form#members-directory-form {
        display: none;
    }

    and then a jquery code:

    jQuery('#members_search_submit').on('click', function(){
       jQuery('form#members-directory-form').show();
    });

    Hopefully, it will do the trick for you.

    Thanks


    mikelast
    Participant

    @mikelast

    Yeah, I ended up doing something similar – I was hoping for some attributes I could pass into the ajax request. No matter, thanks for your reply @prashantvatsh


    Prashant Singh
    Participant

    @prashantvatsh

    Pleasure is mine 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar