I’ve just released version 3.9.4 which allows you to do this
go to
dashboard>settings>bbp style pack>Search Styling
and you’ll see a new item 5
Thread Starter
George
(@quantum_leap)
Robin, this is amazing, thank you! You think you could also add an option to change the actual search input field’s placeholder?
-
This reply was modified 7 years, 11 months ago by
George.
adding a placeholder is harder, as it can only be done by altering a bbpress template. Since themes can also change this, I don’t plan to add it to my plugin.
However if you know how to change a file and ftp it to you site, you should be able to do this
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpress
where %your-theme-name% is the name of your theme
find
wp-content/plugins/bbpress/templates/default/bbpress/form-search.php
Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/form-search.php
bbPress will now use this template instead of the original
and you can amend this
then change line
<input tabindex="<?php bbp_tab_index(); ?>" type="text" value="<?php echo esc_attr( bbp_get_search_terms() ); ?>" name="bbp_search" id="bbp_search" />
to
<input tabindex="<?php bbp_tab_index(); ?>" type="text" placeholder="text you want" value="<?php echo esc_attr( bbp_get_search_terms() ); ?>" name="bbp_search" id="bbp_search" />
and change ‘text you want’ to whatever you want