'; $form .= do_shortcode( '[wcas-search-form layout="classic" mobile_overlay="1" mobile_breakpoint="' . $header_break_point . '"]' ); $form .= ''; return $form; } ); add_filter( 'dgwt/wcas/form/html', function ( $html ) { // We're removing the 'woocommerce' class on these pages because it makes it impossible to update the cart contents. if ( is_checkout() || is_cart() ) { return preg_replace( '/class="([0-9a-zA-Z-\s]+)woocommerce([0-9a-zA-Z-\s]+)"/m', "class=\"$1$2\"", $html ); } return $html; } ); add_action( 'wp_footer', function () { $header_break_point = dgwt_wcas_astra_header_break_point(); $search_box = dgwt_wcas_astra_search_box(); $search_box_style = dgwt_wcas_astra_search_box_style(); // Header Cover Search if ( $search_box === 'search' && $search_box_style === 'header-cover' ) { echo '
' . do_shortcode( '[wcas-search-form layout="classic" mobile_overlay="1" mobile_breakpoint="' . $header_break_point . '" ]' ) . '
'; } // Full Screen Search if ( $search_box === 'search' && $search_box_style === 'full-screen' ) { echo '
' . do_shortcode( '[wcas-search-form layout="classic" mobile_overlay="1" mobile_breakpoint="' . $header_break_point . '" ]' ) . '
'; } ?>