• 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

    (@wpdreams)

    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: https://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”: https://i.imgur.com/lSxWj9A.png
    Make sure to clear your cache after this change.

    I can already see a fatal error message on the javascript error console, which prevents further script execution, causing issues: https://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

    (@wpdreams)

    Hi!

    The error is visible on the shop page for me: https://www.richardsmicrotool.com/shop/

    All the other ones seem to be okay.

    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

    (@wpdreams)

    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.