Title: Storefront issue?
Last modified: October 7, 2016

---

# Storefront issue?

 *  [bbirchmeier](https://wordpress.org/support/users/bbirchmeier/)
 * (@bbirchmeier)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/storefront-issue/)
 * Hello,
 * My site is running Storefront theme, and I cannot get the search function to 
   work at all!
    Wordpress and WooCommerce search bars have been selected to be 
   replaced with this plugin.
 * richardsmicrotool.com

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [wpdreams](https://wordpress.org/support/users/wpdreams/)
 * (@wpdreams)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/storefront-issue/#post-8267309)
 * Hi!
 * I need a little more information to be able to assist you, as I don’t see the
   plugin activated at the moment.
 * – Is the issue that the plugin does not replace the default search bar? If so,
   it’s most likely because the theme does not support automatic replacement of 
   the search bar. (it’s not using searchform.php file to display the search) In
   this case the only possibility is to replace the search manually within the theme
   files with the plugin shortcode.
 * – Or is the plugin not working at all? I suspect this is the issue, as I can 
   already see a fatal error message on the javascript error console, which prevents
   further script execution, causing issues: [http://i.imgur.com/RTJA1Fp.png](http://i.imgur.com/RTJA1Fp.png)
   
   It’s either the auto optimizer causing it, or the problem was already there before
   the optimization. I highly suggest fixing this issue, as it may cause other plugins
   or elements to malfunction (even if this wasn’t the problem with ajax search 
   lite).
 * Also, there is different script loading method implemented in ajax search lite,
   which might be able to get around the error and still load correctly.
    On the
   _Compatibility Settings_ submenu, change the Javascript source option to “Minified
   scoped”: [http://i.imgur.com/lSxWj9A.png](http://i.imgur.com/lSxWj9A.png) Make
   sure to clear your cache after this change.
 *  [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/storefront-issue/#post-8267326)
 * >  I can already see a fatal error message on the javascript error console, which
   > prevents further script execution, causing issues: [http://i.imgur.com/RTJA1Fp.png](http://i.imgur.com/RTJA1Fp.png)
 * weird, I don’t see that error, what page did you get this on wpdreams?
 * anyway; you can see the page without AO by adding `?ao_noptimize=1` to the URL
 * frank (ao dev)
 *  Plugin Author [wpdreams](https://wordpress.org/support/users/wpdreams/)
 * (@wpdreams)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/storefront-issue/#post-8270200)
 * Hi!
 * The error is visible on the shop page for me: [http://www.richardsmicrotool.com/shop/](http://www.richardsmicrotool.com/shop/)
 * All the other ones seem to be okay.
 *  [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/storefront-issue/#post-8270368)
 * ok, the same error appears with AO disabled (cfr. the querystring-flag mentioned
   before) and is due to this block if inline code;
 *     ```
       if (jQuery.cookie( 'gridcookie' ) == null) {
       	jQuery( 'ul.products' ).addClass( '' );
           	jQuery( '.gridlist-toggle #' ).addClass( 'active' );
       }
       ```
   
 * Now to return to the original topic; as you that error only exists on /shop/ 
   it is probably not the reason for the search not being replaced? But I’ll leave
   you to that with bbirchmeier, I’m just the autoptimize-guy 😉
 *  Plugin Author [wpdreams](https://wordpress.org/support/users/wpdreams/)
 * (@wpdreams)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/storefront-issue/#post-8270393)
 * Great, thank you very much for your help 🙂 Your plugin looks great, will try
   it for sure.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Storefront issue?’ is closed to new replies.

 * ![](https://ps.w.org/ajax-search-lite/assets/icon-256x256.png?rev=3192672)
 * [Ajax Search Lite - Live Search & Filter](https://wordpress.org/plugins/ajax-search-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-search-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-search-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-search-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-search-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-search-lite/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [wpdreams](https://wordpress.org/support/users/wpdreams/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/storefront-issue/#post-8270393)
 * Status: not resolved