fbpx

Add Ajax to the current Theme

498 views April 8, 2017 July 13, 2019 admin 0

What is it ?

You want to keep your current Theme to display WPSOLR results, including filters. But you really like the default WPSOLR Ajax template ?

Good news ! You can now add Ajax to your current Theme, even if your theme does not include Ajax features.

How does it work ?

Sections of the current Theme search page concerned by Ajax

Sections of the current Theme search page concerned by Ajax

Some sections of your search page will start an Ajax call, and some sections of your search page will be refreshed when the Ajax call is completed.
Each Theme search template being different, in the following settings, you will tell the plugin which sections need to start Ajax or be refreshed by Ajax, with jQuery selectors.

 

But first, how to activate Ajax with the current Theme ?

There is a new search template option “Use my current theme search template with Ajax” in screen 2.1. Just select it. Then use the Theme extension options to configure Ajax.

Select Ajax with the current theme search template

Select Ajax with the current theme search template

 

Does Ajax work with a WooCommerce theme?

Yes, it does. Even better, all the settings are preconfigured to work with all WooCommerce themes without any configuration.

Does Ajax work with any theme?

Yes, it probably does. Using jQuery selectors, you should be able to tell the plugin which of your template sections will be Ajaxified.

Was this helpful?

Join Our weekly Newsletter

Receive our latest news once a week, each Thursday afternoon.
Your email is kept 100% private, and you will not receive other stuff in your mailbox.

We keep your data private and share your data only with third parties that make this service possible. Read our Privacy Policy.