Only load on mobile devices?
-
Hello, is it possible to get this plugin to only apply its changes and effects on mobile devices? Such as by using is_mobile() or defining a screen width when it will go into effect?
I’m in transitional mode, trying to use an AMP-compatible menu on AMP Urls only.
Problem is, when I suppress that plugin for AMP, it disables it on the ‘big screen’ view which is not ideal for us. We use Max Mega Menu to display a long list of pages on wide screens (it would be awful to have one-column menus in this context). They don’t seem to have plans to make their plugin AMP compatible. I asked about this, here.
So I’m attempting to ‘turn on’ the native Genesis menu, which is AMP-compatible, but only when the screen gets small enough for that to make sense.
However, I feel like this would be useful in other contexts, too, to simplify things a lot without having to go ‘bare bones’ with Reader Mode. E.g. I can imagine using this method to take out non-AMP Gravity forms but only on smaller screen sizes, etc.
I’m not a heavy coder but I can manage code snippets and things like that. Any help you can offer would be so greatly appreciated. Thank you for making this plugin for everyone to use.
The topic ‘Only load on mobile devices?’ is closed to new replies.