Reply To: Using my search form on the main forum page?
Actually, my original question still stands. I had modified this code to add a placeholder (for consistency)
// ==============================================================
//display bbPress search form above single topics and forums
function rk_bbp_search_form(){
if ( bbp_allow_search()) {
?>
<form role="search" method="get" id="bbp-search-form" action="https://www.publictalksoftware.co.uk/support-forums/search/">
<div class="trucklesoft-bbp-searchrow">
<label class="screen-reader-text hidden" for="bbp_search">Search for:</label>
<input type="hidden" name="action" value="bbp-search-request">
<input tabindex="101" type="text" value="" name="bbp_search" id="bbp_search" placeholder="Type Search Term ...">
<input tabindex="102" class="button" type="submit" id="bbp_search_submit" value="Search">
</div>
<div class="gdpos-power-link">
<a href="https://www.publictalksoftware.co.uk/support-forums/search/">Advanced Search</a>
</div>
</form> <?php
}
}
add_action( 'bbp_template_before_single_forum', 'rk_bbp_search_form' );
add_action( 'bbp_template_before_single_topic', 'rk_bbp_search_form' );
// ==============================================================
Now I would also like to add this placeholder to the search form here:
https://www.publictalksoftware.co.uk/support-forums/
It shows OK everywhere else, example:
Thank you.