BP Profile Search › search form resizing
-
AuthorPost
-
Mif
GuestHello Andrea, thanks for creating this plugin. I used your “smoothness” template for the search form. The search form is too big it fills up most of my page. How do I make the search form smaller? I don’t know how to write css codes by the way. Please help.
Thanks,
Mifandrea
Plugin AuthorHello Mif,
I’m not a CSS person either, so I can only suggest one of the following workarounds:
1. Set the Collapsible Form option to Yes, so that the form is always collapsed unless you are using it;
2. Try inserting the search form in a sidebar, using the Profile Search widget.
Please let me know if this helps!
Mif
GuestHI there, I was wondering is it possible to multi select using radio buttons and if so how do I do it? At the moment, the multi select I can use is drop down which means I have to click control button to select more than 1. I prefer just checking off radio buttons. thanks
andrea
Plugin AuthorHi Mif,
You can add this code to your bp-custom.php file:
add_action ('bps_field_before_search_form', 'change_display'); function change_display ($f) { if ($f->code == 'field_34') { $f->display = 'checkbox'; } }
Replace 34 with the actual field ID of your multi-select field.
Max
GuestHi!
I have a problem with the view..
The search fields are all added vertically, so when I add the plugin to the page, it looks good on the phone but half empty on the big screen.
I tried to add it as a widget, but then the search filters end up all the way down on the page for starters..I need it to expand horizontally so that the fields fill out the whole window.
Could you please help me out on this one?Thanks up front!
Regards,
Maxandrea
Plugin AuthorHi Max,
What you need is a modified form template, that adds the search fields on a grid suitable for your theme, possibly using the same CSS of your theme.
Unfortunately I don’t have a solution ready for this use case but, if you or your developer want to modify the standard form template, you can find some information in this page:
Max
GuestHi Andrea,
thank you for your feedback! 🙂
I’ve contacted the layout-support (fingers crossed):)One more question:
On the front-end next to each field is the search mode visible (contains/match any).
Is there a way to get rid of it?Regards,
Maxandrea
Plugin AuthorHi Max,
The search modes appear in the search forms and in the active filters area before the members directory.
In both cases there is a BP Profile Search template you can modify to better suit your needs: bps-form-default.php for the search forms, and bps-filters.php for the active filters area.
Basti
GuestHey Andrea,
regarding this old topic:
After clicking on search, the active filters are always shown above the search form. How can I shift them underneath the search form?Thanks !
andrea
Plugin AuthorHi Basti,
Try adding this code to your bp-custom.php file:
add_action ('bp_before_directory_members_content', 'move_filters', 5); function move_filters () { remove_action ('bp_before_directory_members_content', 'bps_add_filters'); add_action ('bp_before_directory_members_tabs', 'bps_add_filters', 20); }
-
AuthorPost