Customized Search always Active doesnt work with multiple CPTs

This topic contains 4 replies, has 3 voices, and was last updated by  Stiofan O’Connor 9 years, 5 months ago.

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

Open Support Ticket

Tagged: , ,

  • Author
    Posts
  • #39956

    terrencehill
    Buyer
    Post count: 26

    Hello Folks!

    I need to use the Customized Search as standard, for all CPT. This means, the Customized Search should be active in every situation.

    I tried this code u showed in a previous post, but it does not work: The moment I switch a CPT on the homepage, the checkboxes hide away and don’t appear again. This is the code I use:

    <script>
    jQuery(document).ready(function(){

    if(jQuery(‘.geodir-filter-container .customize_filter’).length){

    jQuery(‘.geodir-filter-container .customize_filter’).show();

    jQuery(‘.geodir-search input.geodir_submit_search’).hide();

    jQuery(‘.geodir-search input.showFilters’).hide();

    }

    });
    </script>

    Thanks
    Sincerely
    Thomas

    #40046

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    that should work for all CPT, could you provide a link where we can see this happening?

    Let us know.

    Thanks,

    #40049

    terrencehill
    Buyer
    Post count: 26
    This reply has been marked as private.
    #40052

    Paolo
    Site Admin
    Post count: 31206

    Ok, I think the problem is that the script used was provided long time ago, before we changed how the advance search work.

    I’ll ask to Stiofan to check if it can be corrected.

    Thank you for bringing this up.

    #40066

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    There is no precise way of doing this as we are ultimately waiting for a ajax event but have no way to hook the action to do our own action when finished, we could write a function to do something say 1.5 seconds later but on slow servers it would fail sometimes. There have been a few people asking for such a feature, i would suggest we add a option to the widget that makes the area visible all the time, but this would not be until the next release if you can wait?

    Stiofan

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount