Forums Forums Search & Filter Pro How to make Sort dropdown a combobox?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Anonymous
    #248581

    There is no option for this.

    I just need to add data-combobox="1" to the sort select element.

    Don’t suppose there is a way to inject this with a function in functions.php? I’d prefer not to have to hack the plugin code.

    I’ve tried inserting it with jQuery, but it does it after the combobox initializes.

    Thanks.

    Trevor
    #248584

    Do you need this for styling purposes, or for the search box that a combobox has?

    Anonymous
    #248586

    It’s for both actually. I need the search feature and I have already styled the other comboboxes.

    Trevor
    #248592

    Are you using Select2 as the script? Chosen is our default, but is not so good on iPhones.

    Anonymous
    #248594

    Yeah, chosen isn’t great on iOS. I’m using Select2.

    Trevor
    #248598
    Anonymous
    #248600

    Yes, it works!.

    jQuery("li.sf-field-sort_order select").select2();

    Thanks again, Trevor.

    Trevor
    #248602

    Thanks for letting me know. I will close this thread for now.

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