• Hi, as the subject suggests i’m struggling to understand how to achieve the following:

    • Remove the “Search” searchbox from within the drowpdown filter (i already have another search box on the right hand side, i don’t need another one in the dropdown that filters by category
    • Change the filter’s placeholder from “All” to “Choose genre” or something
    • Make the dropdown list expanded by default, thus avoiding having to click that very counterintuitive “Show more button”.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support crodriguez1991

    (@crodriguez1991)

    Hello there,

    I hope you’re doing well :D.

    In order to remove the search field, you’ll need to add the following CSS rule on Appearance > Customize > Additional CSS

    .yith-wcan-dropdown .search-field-container {
        display:none;
    }

    In order to show all fields, you’ll need to use the following code in the functions.php of your active theme:

    function yith_wcan_terms_on_first_loading($number) {
        $number = 999;
        return $number;
    }
    add_filter('yith_wcan_terms_on_first_loading','yith_wcan_terms_on_first_loading');

    Also you will need to disable the paginate terms on plugin options.

    For change the “All”, you’ll need to add the following code in the functions.php of your active theme:

    if( !function_exists('yith_wcan_all_filters_label') ){
    
      add_filter('yith_wcan_all_filters_label', 'yith_wcan_all_filters_label');
    
      function yith_wcan_all_filters_label(){
        return "—Select—";
      }
    
    }

    Please, try it and let me know.

    Have a good day.

    Thread Starter a0394

    (@a0394)

    Hi,

    Thanks for your kind answer! The CSS and the second function worked flawlessly, however as for the

    function yith_wcan_terms_on_first_loading($number) {
    $number = 999;
    return $number;
    } add_filter('yith_wcan_terms_on_first_loading','yith_wcan_terms_on_first_loading');

    it didn’t work, even though i did have pagination already disabled within the plugin settings.
    How can i show all the dropdown items? I recall them showing normally months ago.
    Thanks again, have a nice day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable search box in selector filter and change placeholder’ is closed to new replies.