I (re-)tested Jetpack Mobile on my testblog and all is fine there really. now what surprises me is that you mention “button presses”, while I don’t see buttons there (I see a dropdown-menu, which works and links inside which also work, but no buttons).
Anyway, what you could do is use AO’s API (and specifically autoptimize_filter_js_noptimize filter) to tell AO not to JS-optimize if the HTML has jetpack/modules/minileven in it. If you want I can provide you with the code to do that.
frank
Hi Frank, thank you for the speedy response! If you are referring to my site working, I’ve actually deleted the AO plugin until I can figure out how to get it to play nicely with the mobile theme. There’s also a possibility that the issue is Go Daddy’s Managed WordPress hosting’s auto-caching is somehow interfering?
Thanks again!
I’m referring to the fact that AO + JetPack mobile theme works OK in my test-setup 🙂
Regarding your site, I didn’t understand your reference to “buttons”, as JetPack mobile (as far as I can see) does not feature buttons?
No idea if/ how GoDaddy’s would interfere really.
Anyway, to progress in this here matter I would advise you to;
1. re-enable AO, starting with CSS & HTML optimization only. given your problem description, the problem is most likely JS-specific.
2. you can re-enable JS optimization while disabling it for JetPack Mobile pages with this piece of code (using e.g. code snippets);
add_filter('autoptimize_filter_js_noptimize','noptJPM',10,2);
function noptJPM($bool,$content) {
if (strpos($content,"minileven")!==false) {
return true;
} else {
return false;
}
}
hope this helps,
frank
Hi Frank Sorry about the reference to “buttons”…. I just meant clickable areas… so in this case if you click on a home listing under one of the city pages, it instead goes to another random page on the site if AO is installed. Unfortunately with Go Daddy’s Managed WordPress plan we are not able to adjust settings on their cache. Noted on the code, I’ll give it to our web coding guy to see if he can install.
Thanks for your help!!!
so in this case if you click on a home listing under one of the city pages, it instead goes to another random page on the site if AO is installed.
Very weird, as JetPack Mobile does not depend on JS for links (in menu or in text).
What URL is your site on?
frank
This was taken offline (well, via mail) and the conclusion is this behavior is probably due to an optimization-problem with the JS of one of the plugins used (so not JetPack Mobile generic).
to be confirmed & troubleshooted later, when goldengate has time to look into this more.
frank
Yes thank you for the excellent support, Frank!