Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: A couple of beginner questions.

@gunju2221

Participant

Try something like this in your bp-custom:

function new_search_action() {
global $bp;

return apply_filters( 'new_search_action', $bp->root_domain . '/search' );
}

function custom_adminbar_search() {
$mobSearch = '
<li class="align-right"><form action="' . new_search_action() . '" method="post" id="search-form">

' . bp_search_form_type_select() . '

' . wp_nonce_field( 'bp_search_form' ) . '
</form></li>
';

echo apply_filters( 'bp_search_form', $mobSearch );
}
add_action('bp_adminbar_menus', 'custom_adminbar_search', 100);

Tell me how that works.

Skip to toolbar