Okay
  Print

How to prevent a specific page to load with AJAX

Sometimes you will be in a situation where a certain page does not load the first time (you must refresh it to loads it). In most cases, this issue is related to one of your third party plugins you are using in the page which is not compatible with Ajax page loading. The plugin throw an error in the console and thus, break the ajax loading script.

To prevent loading the page with ajax (and load it the standard way), you can add a specific CSS class on your menu items, or on the a href link that load the problematic page. The CSS class to use is no-ajax

Example with an html link:

<a href="https://yourdomain.com/problematic-page/" class="no-ajax">My Link</a>

Example with a Menu Item:

If the page is loaded from your WordPress menu, then you can add specific class to your menu item by going to WP-Admin > Appearance > Menu.

See screenshot https://d.pr/i/ZNbyx1


Disable AJAX for the whole website:

To turn off AJAX for the whole website, go to WP-Admin > Theme Options > General Settings and disable Continuous Audio Player & AJAX