Update breaks search replacement
-
Hi, i used this code i found in a support thread a while ago. It replaces the standard search (including mobile)
if ( class_exists( 'DGWT_WCAS_Search' ) ) { if ( ! function_exists( 'storefront_product_search' ) ) { function storefront_product_search() { if ( storefront_is_woocommerce_activated() ) { ?> <div class="site-search"> <?php echo do_shortcode( '[wcas-search-form]' ); ?> </div> <?php } } } add_action( 'wp_footer', 'asfwc_inverse_orientation_on_mobile' ); function asfwc_inverse_orientation_on_mobile() { ?> <script> jQuery(window).on('load', function () { var $footerSearch = jQuery('.storefront-handheld-footer-bar .dgwt-wcas-search-input'); if ($footerSearch.length > 0) { $footerSearch.dgwtWcasAutocomplete('setOptions', { orientation: 'top', forceFixPosition: true } ); } }); </script> <?php } }
However the update broke it so i reverted back to 1.7, could anyone help me get it fixed so i may use the updated version?
Thank you
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Update breaks search replacement’ is closed to new replies.