Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to Replace search submit with image icon

  • @naijaping

    Participant

    `<?php

    function new_search_action() {
    global $bp;

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

    function custom_adminbar_search() {
    $mobSearch = ‘

    • ‘ . bp_search_form_type_select() . ‘

      ‘ . wp_nonce_field( ‘bp_search_form’ ) . ‘

    ‘;

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

    ?>`

Viewing 2 replies - 1 through 2 (of 2 total)
  • @naijaping

    Participant

    Sorry i cant edit my post, am using the above code to display search box in Admin bar, everything is alright but i will like to replace “Search” with a search image icon.

    any help will be appreciated.

    Regards

    @naijaping

    Participant

    can you please mark as solved. i have fixed it.

    regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to Replace search submit with image icon’ is closed to new replies.
Skip to toolbar