Search Page Filters

This topic contains 12 replies, has 4 voices, and was last updated by  Giri 7 years, 2 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #364263

    Lance Sampson
    Buyer
    Post count: 108

    Hi

    How can I have the search filters window always open ONLY on the search results listing page on the supreme template? I don’t want to have to push button to get the filters.

    Thanks.

    #364304

    Kor
    Moderator
    Post count: 16516

    Hi Lance,

    Could you try switching “On” this option as shown in this screenshot http://prntscr.com/eeafvj in the Gd > Search Widget and see if it helps?

    Thanks!

    #364455

    Lance Sampson
    Buyer
    Post count: 108

    Hi Kor,

    Its not in a widget. When you submit a search from the homepage, it goes to the search results page. I am referring to the search bar that at the top of the search results page. I am assuming its built into the template.

    Thanks

    #364512

    Paolo
    Site Admin
    Post count: 31206

    Hi Lance,

    yes it’s added via shortcode in the geodirectory-copmatibility file.

    I asked to Giri to let us know if there is a way to add the parameters to the shortcode, preventing future updates to wipe out the change.

    He’ll let us know asap.

    Thanks

    #364587

    Giri
    Expired Member
    Post count: 3155

    Hi Lance, I added filters for search shortcode.

    Please post your admin login details.

    i’ll apply the patch and test it.

    You can find the code here.

    https://github.com/mistergiri/supreme-directory/commit/b9405e25e20f584554c78a7490393fa3e72b3780

    Thanks

    #364674

    Lance Sampson
    Buyer
    Post count: 108
    This reply has been marked as private.
    #364677

    Giri
    Expired Member
    Post count: 3155

    I need the site url too.

    Thanks

    #364696

    Lance Sampson
    Buyer
    Post count: 108
    This reply has been marked as private.
    #364702

    Giri
    Expired Member
    Post count: 3155

    Hi Lance,

    Added code snippet in your site.

    For others users who bump into this question here is the code.

    
    
    add_filter('sd_search_shortcode_args', 'modify_sd_search_shortcode_args');
    function modify_sd_search_shortcode_args($args) {
          if (geodir_is_page('search')) {
             $args['show_adv_search'] = 'always';
    	  }
          return $args;
    }
    #364703

    Paolo
    Site Admin
    Post count: 31206

    Thanks Giri! 🙂

    #364704

    Giri
    Expired Member
    Post count: 3155

    🙂

    #364710

    Lance Sampson
    Buyer
    Post count: 108

    Looks great. Thanks Giri

    #364712

    Giri
    Expired Member
    Post count: 3155

    You are welcome 🙂

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

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

Open Support Ticket