• How to replace the search in the header of the

    `</blockquote><?php
    $ps_echo = true ;
    if ( function_exists( ‘woo_predictive_search_widget’ ) ) woo_predictive_search_widget( $ps_echo );
    ?><blockquote>`

    thanks in advance!

Viewing 1 replies (of 1 total)
  • Something like this should work:

    remove_action( 'storefront_header', 'storefront_product_search', 	40 );
    add_action( 'storefront_header', 'storefront_custom_product_search', 	40 );
    
    function storefront_custom_product_search() {
    echo '<div class="site-search">';
    $ps_echo = true ;
    if ( function_exists( 'woo_predictive_search_widget' ) ) woo_predictive_search_widget( $ps_echo );
    echo '</div>';
    }

    Add that to your child themes functions.php file.

    Thanks

Viewing 1 replies (of 1 total)

The topic ‘search in the header’ is closed to new replies.