Yes, I put it in the functions.php
When I then went to reload the website all it would return was a blank white page.
I then restored the previous code via ftp and the website displayed correctly once more.
Edit: I’ll try that functionality plugin and see if it works there – I’m a bit new to this so there’s a strong chance I did it wrong!
function rk_bbp_search_form(){
if ( bbp_allow_search()) {
?>
<div class=”bbp-search-form”>
<?php bbp_get_template_part( ‘form’, ‘search’ ); ?>
</div>
<?php <–right here it opens a tag without closing it though, doesn’t it?
}
}
add_action( ‘bbp_template_before_single_forum’, ‘rk_bbp_search_form’ );
add_action( ‘bbp_template_before_single_topic’, ‘rk_bbp_search_form’ );
add_action( ‘bbp_template_before_search’, ‘rk_bbp_search_form’ );
I tried adding that to my functions and all it succeeded in doing was breaking the website!
Granted that is more than likely down to my lack of knowledge!