Skip to:
Content
Pages
Categories
Search
Top
Bottom

Buddypress search form in header

  • @thejameshardy

    Participant

    Hi I would like to add the buddypress search in the header of my theme

    <?php echo bp_search_form() ?>

    I tried that but it doesnt appear (everything after it doesnt appear aswell.)

    I was wondering if anyone could help me? Also how can I change the input classes to the search form too and remove the submit box from it so just have to press enter?

    Thank you guys!

Viewing 4 replies - 1 through 4 (of 4 total)
  • @henrywright

    Moderator

    Hi thejameshardy

    Which file are you adding bp_search_form() to?

    @thejameshardy

    Participant

    Hi thanks for your reply much appreciate it. The themes main header.php Im using the html5 blankslate theme and enclosing it in an a simple if statement

    if ( function_exists('bp_is_active') )

    @henrywright

    Moderator

    bp_search_form() isn’t really used these days. Try bp_directory_members_search_form() instead. The function will output a search form so no need to use echo.

    @thejameshardy

    Participant

    Thank you!

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