Also, is there a way to change bps-filter position in HTML code (image attached)?
View post on imgur.com
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.
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!!
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!
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.
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);
}
Hi Andreae–
Thank you very much!!! This worked perfectly.
🙂