AJAX mode

You are here:

Ajax mode was conceived in order to make the Geotargeting plugin compatible with all cache plugins around. Once enabled, the shortcodes and geotargeted posts or products will be updated after the page is load by doing an AJAX request with Javascript. Thanks to this we are able to bypass the page cache generated by plugins.

This functionality is complex so please test it carefully after activating it.

Important:

  • Geotargeted widgets are not supported by ajax.
  • Posts / products needs to be compliant with WordPress coding standards. This mean that each posts needs to have an ID attribute such as post-12 (where 12 is post ID ) or class attribute with same value. Also when content is replaced with a message the posts needs to have class attribute of “entry-content” in order to know where to place the message.