Support » Plugin: BP Profile Search » add clear button

  • Resolved netreneris

    (@netreneris)


    Hello Andrea,

    you are awesome! Thanks again for the help with the elimination of the field in the search plugin. I have one more question, it’s possible to add a “clear” button in the filter to clear selected fields (image attached)?

    https://imgur.com/a/WbMV4y9

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter netreneris

    (@netreneris)

    Also, is there a way to change bps-filter position in HTML code (image attached)?
    https://imgur.com/a/sn99xKe

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hi netreneris,

    To clear a search, you can use the Clear link you can see in your second screenshot, and that will clear the form too. At this moment it’s not possible to clear the form only, but you could modify the form template and add that feature. By the way, it looks like you are already using a modified form template.

    To change the filters position, you can modify the filters template (bps-filters.php) or possibly its CSS only.

    Thread Starter netreneris

    (@netreneris)

    Hello Andrea,

    I used a little of CSS to modify the design of the template. 🙂 I do not know if it was the best way to do that.

    I’ll try to look at (bps-filters.php) file. Thanks!!

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hello netreneris,

    You’re welcome! And your changes look great.

    Hello- I’m also trying to change the bps-filters position. Right now it appears before bps-form, butI’d like it to appear after it. I’ve looked at the bps-filters.php file but can’t see how I would be able to change it that way. Any pointers would be appreciated!

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hello ipedigo,

    At the moment it’s not possible to change the position of the bps-filters template, you can only modify its CSS.

    I’ll add a way to change its position in the next plugin version, and I’ll let you know here when it’s ready.

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hello ipedigo,

    With BP Profile Search 5.4.2, you can move the bps-filters template after the search form, adding this code to your bp-custom.php:

    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);
    }
    ipedigo

    (@ipedigo)

    Hi Andreae–

    Thank you very much!!! This worked perfectly.

    🙂

    Plugin Author Andrea Tarantini

    (@dontdream)

    Great! You are welcome.

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.