Forums Forums Search & Filter Pro Expanding Filter Sections

Viewing 3 posts - 1 through 3 (of 3 total)
  • Anonymous
    #7992

    If we have a bunch of different options the filter can become very long and people might not see all the available search options initially…

    Heading 1
    option 1
    option 2
    option 3
    Heading 2
    option 1
    option 2

    Based on the above example, is it possible to make each Heading start collapsed (not showing the options) then allow the user to click on the heading to expand the options. This would be great to have for filters that have a lot of options. The users can expand the section they want to search by then pick their options.

    I might be able to do this myself but I am not sure what file it is to edit the actual filter.

    Thank you!

    Anonymous
    #8001

    Actually, can you tell me what file is the one where it sets the h4 tag for the filter headings and adds html for the option lists? If I can add a few things along with some css I might be able to get it working for me.

    Ross Moderator
    #8292

    Hey Andrew

    The plugin doesn’t offer this option yet.

    The code you are looking for is in:

    public/includes/class-search-filter-display-shortcode.php

    In that file head to line 570 and you’ll find:

    $returnvar .= "<h4>".esc_html($field_data['heading'])."</h4>";

    Thanks

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