Support » Plugin: Advanced AJAX Page Loader » Disable plugin on mobile devices?

  • Resolved orenmedina


    first – this is a great plugin! thanks!
    now i’m using the standard twentytwelve theme, and i manually create responsive layout (with css media queries).
    how can i disable the plugin from AJAXing my pages while using mobile device?
    (lets say you’re using iPhone to visit my site, so when you click on a menu item, the ajax load the page under the menu – the user can’t see it!)
    I can figure out the php code ( if (mobile) then {aapl – NOT}; )… but what exactly is the aapl-code/line i should disable?


Viewing 3 replies - 1 through 3 (of 3 total)
  • I am wondering if this is possible as well?


    I was able to disable AAPL on mobile devices by editing the advanced-ajax-page-loader.php file. I added this code at the top of the page immediately after the */:

    if (!wp_is_mobile()) :

    and then adding this code:


    immediately before the final: ?>

    Works like a charm from my initial tests. Hope it helps you out.

    Plugin Author Dean Williams


    Thanks for this, I will add an option to the next AAPL for this – seems like a good idea.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable plugin on mobile devices?’ is closed to new replies.