Support » Theme: Storefront » remove storefront search bar with another search bar

  • Hi,

    I wanted to remove storefront-search bar with the search bar of https://wordpress.org/plugins/ajax-search-for-woocommerce/.

    I tried following code but it is not working:

    /* remove storefront searchbar from header*/
    add_action( ‘init’, ‘jk_remove_storefront_header_search’ );
    function jk_remove_storefront_header_search() {
    remove_action( ‘storefront_header’, ‘storefront_product_search’, 40 );
    }
    /* Custom WooCommerce Ajax search in header*/
    add_action( ‘storefront_header’, ‘storefront_child_custom_search’ , 5 );
    function storefront_child_custom_search() {
    echo do_shortcode( ‘[wcas-search-form]’ );
    }

    Please help me…

  • The topic ‘remove storefront search bar with another search bar’ is closed to new replies.