WordPress.org

Ready to get started?Download WordPress

Forums

Advanced AJAX Page Loader
[resolved] Disable plugin on mobile devices? (4 posts)

  1. orenmedina
    Member
    Posted 1 year ago #

    Hi,
    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?

    thanks,
    Oren

    http://wordpress.org/extend/plugins/advanced-ajax-page-loader/

  2. Courtney Fantinato
    Member
    Posted 1 year ago #

    I am wondering if this is possible as well?

    Thanks!

  3. sbernado
    Member
    Posted 10 months ago #

    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:

    endif;

    immediately before the final: ?>

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

  4. Dean Williams
    Member
    Plugin Author

    Posted 9 months ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic