Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search option


  • katiemeeks
    Participant

    @katiemeeks

    I see there is an option if someone is on the main root forum page for search but once you click into a forum the search goes away.

    Is there a way within a forum to have a search?

    We use a lot of different forums and would like to have a search option when they visit the forum itself, not the root forum. Is this an option?

Viewing 4 replies - 1 through 4 (of 4 total)

  • TKServer
    Participant

    @tkserver

    I use the search widget for that.


    Robkk
    Moderator

    @robkk

    @katiemeeks

    Does this php code snippet help any?? Make sure to place this php code snippet into your child themes functions.php file or in a plugin that can hold custom php code snippets like the functionality plugin.

    //display bbPress search form above sinle topics and forums
    function rk_bbp_search_form(){
     
        if ( bbp_allow_search()) {
            ?>
            <div class="bbp-search-form">
     
                <?php bbp_get_template_part( 'form', 'search' ); ?>
     
            </div>
            <?php
        }
    }
     
    add_action( 'bbp_template_before_single_forum', 'rk_bbp_search_form' );
    add_action( 'bbp_template_before_single_topic', 'rk_bbp_search_form' );

    katiemeeks
    Participant

    @katiemeeks

    that is awesome Robkk! thank you – works great.


    Robkk
    Moderator

    @robkk

    no problem

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar