search form resizing

Home Forums BP Profile Search Forum search form resizing

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #10963 Reply
    Mif
    Guest

    Hello 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,
    Mif

    #10964 Reply
    andrea
    Keymaster

    Hello 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!

    #10966 Reply
    Mif
    Guest

    HI 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

    #10967 Reply
    andrea
    Keymaster

    Hi 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.

    #11024 Reply
    Max
    Guest

    Hi!

    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,
    Max

    #11029 Reply
    andrea
    Keymaster

    Hi 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:

    https://dontdream.it/bp-profile-search/form-templates/

    #11048 Reply
    Max
    Guest

    Hi 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,
    Max

    #11049 Reply
    andrea
    Keymaster

    Hi 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.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: search form resizing
Your information: