Using my search form on the main forum page?
-
I have this custom code to display a form on the stated pages:
// ==============================================================
//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”>
<input tabindex=”102″ class=”button” type=”submit” id=”bbp_search_submit” value=”Search”>
</div><div class=”gdpos-power-link”>
Advanced Search
</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’ );
// ==============================================================Can I also use this code to replace the form that is displayed at the top of the forums page too?
This is because I have introduced my own class which I now need also on the main forum page form:
https://www.publictalksoftware.co.uk/support-forums/
You will see they look different.
Is there just another action I need to add here?
Thanks.
- You must be logged in to reply to this topic.