Hi Scott!
I already read other topics regarding mobile detection problems caused by caching systems.
So, does it mean that the $_SERVER[‘HTTP_USER_AGENT’] is cached, and then the info served to me comes from some other user device?
Sounds more like an information that’s not meant to be cached, not only to use mobble (very important matter ?? ), but i.e. also for analytics purposes.
In your opinion, what kind of cache setting should be changed to avoid caching of that information and so make mobble work properly?
I’m currently using Comet Cache plugin.
Thanks for your work ??
]]>Hi Scott,
This plug in is brilliant and seems to work perfectly in August 2018 (using WP 4.9.8)
Q1)
Before I commit to using it for a longer term and become quite dependent on it, I’d like to know if you are still going to be supporting Mobble, as it says last update was 2 years ago on https://www.ads-software.com/plugins/mobble/.
Q2)
Does this automatically & continually add to its User Agent Detection list?
Thanks,
Reagan
Hi there,
Could I just double check that this plugin doesn’t gather any other data than just the mobile device.
Thanks Nicola
Does it too work on browser resize event without refreshing browser?
]]>Hi,
I’ve got some error with php71 (7.1.8).
Fatal error: Uncaught Error: [] operator not supported for strings in /Users/penyo/Sites/domain.dev/wp-content/themes/v8/lib/mobble.php:261 Stack trace: #0 /Users/penyo/Sites/domain.dev/wp-content/themes/v8/lib/mobble.php(191): mobble_body_class('') #1 /Users/penyo/Sites/domain.dev/wp-content/themes/v8/base.php(14): mobble_class() #2 /Users/penyo/Sites/domain.dev/wp-includes/template-loader.php(74): include('/Users/penyo/Si...') #3 /Users/penyo/Sites/domain.dev/wp-blog-header.php(19): require_once('/Users/penyo/Si...') #4 /Users/penyo/Sites/domain.dev/index.php(17): require('/Users/penyo/Si...') #5 {main} thrown in /Users/penyo/Sites/domain.dev/wp-content/themes/v8/lib/mobble.php on line 261
Thanks.
]]>This might be a 4.8 issue, but a few days ago it worked perfectly, but now it doesn’t detect an S6. Tested on iphone 5 and it works fine. I’m actually using the mobble shortcodes to do the check.
Also, could you give an example of how to do the detection using html?
Thanks, very useful plugin.
Hello,
I am a little confused with MOBBLE. Our WordPress MU sites are in under HHVM and Redis environment, and the speed is very fast in PC mode, and the speed is very fast too in Mobile phone 3g data mode, but if Mobile phone is in WIFI network of same intranet of PC, the speed will very very slow.
We are using Kleo, a responsive theme(https://themeforest.net/item/kleo-pro-community-focused-multipurpose-buddypress-theme/6776630?s_rank=1)
I have activated Mobble in our subsites, Would you please let me know whether MOBBLE is helpful mobile mode speed?
Thanks so much.
Alex
]]>Hi there
very few solutions for the thing I need, so I really hope this plugin can help me.
I need to set a unique cookie for mobile users only so the cookie can be detected by the server and that Varnish cache is disabled on mobile because some plugins aren’t functioning as it should when this cache is present.
Can you please advise how to accomplish this with the this plugin?
Thanks
]]>Hello,
I’ve noticed that Chrome always gets detected as mobile AND handheld, even on desktop (Win).
Any fix?
Thanks
]]>What changes were made with the latest update?
]]>Dear Scott,
Please help me to resolve the select option on iphone it not showing selected.
I have check the mobile detection in https://demo.mobiledetect.net/ and it is showing the device information correctly.
Hi Scott,
Thank you for the plugin, it is a great plugin, I have used it on few of the projects already.
However, on one of the projects that I worked on is having a strange issue.
Please see screen shot.
Even when I view the website on my desktop, it still detects the website view on mobile.
Please see screen shot.
Viewing the same website on same browser session, it detects the website view on the desktop.
The Website url is https://www.assetplus.com.au/
As I mention it before, I used the plugin on few projects and this is the only one haveing the issue.
If you can have a look and let me know what would cause that would be great.
Thank you,
Steve
]]>Hey,
I have network activated mobble on my multi site but it doesn’t work on them.
]]>It’s been 5 months since Mobile Detect was updated for Mobble – in that time there are a few fixes and quite a few devices added – https://github.com/serbanghita/Mobile-Detect/compare/2.8.18…master
Could you please update?
Thanks.
]]>Hi,
My current website is not fully responsive. . I want to make full responsive (menu etc.)
My Site : https://www.galerinevistanbul.com
Can I make this add-on? How about I make you help?
]]>Fatal error: Call to a member function isTablet() on a non-object in /<pluginpath>/mobble.php on line 300 when trying to bulk update plugins in a client installation. Please advise, thanks
]]>It will be great if there is an option to switch to desktop version. Is it posible?
]]>How would I use this to redirect to another url if a desktop is detected?
]]>Hi,
I have user agent groups in w3tc enabled, but still the plugin serves from time to time desktop content/cache for mobile users (might be the other way around as well). Does anyone a permanent/100% working fix for this issue?
Thanks
]]>hi, i have been trying to use your plugin, but i can not get it work.
i tray to delete the margin of an image on mobile and add it on desktop but doesn’t work for me. Hope you can help me.
This is the original code for mobile
.adsng-cover img {
margin-left: -30px;
margin-bottom: 40px;
width: 310px;
height: 310px;
}
basically i want to put 0 on desktop but i dont know wre does it goes the function. BTW im working on the style.css i made this but doesn’t work:
<?php
if (is_mobile()) {
.adsng-cover img {
margin-left: -30px;
margin-bottom: 40px;
width: 310px;
height: 310px;
}}
?>
<?php
if (!is_mobile()) {
.adsng-cover img {
margin-left: 0px;
margin-bottom: 40px;
width: 310px;
height: 310px;
}}
?>
and this but doesn’t work either:
.adsng-cover img {
<?php
if (is_mobile()) {
margin-left: -30px;
margin-bottom: 40px;
width: 310px;
height: 310px;
}
?>
<?php
if (!is_mobile()) {
margin-left: 0px;
margin-bottom: 40px;
width: 310px;
height: 310px;
}
?>
}
BTW this is the web page.
]]>This plugin generally works great, and thank you for making it!
On my client’s site, https://www.FocusCFO.com, there is an image link to a YouTube video. On desktop, it uses a lightbox plugin, but on mobile it would not work so I added the is_mobile code using your plugin that would make the mobile view simply a clickable link to YouTube. This worked perfectly on my Android as well as on her iPhone and iPad–but on the iPad, it showed up only in landscape mode and not portrait.
So I added iPad-specific code (below) but now on the iPad she sees both the desktop lightbox version and the iPad change—but only in landscape. In portrait view, she’s fine.
Should I have to mark the desktop original with some sort of “desktop” code? Or is there a way to add the orientation to your code? I know it has something to do with the sizing…should I make the image 600px max width?
Here’s my code (part of the header), and many, many thanks for any help:
<div id="slider">
<p align="center">
<a href="https://www.youtube.com/watch?v=tmz1jwED35Q&rel=0" rel="wp_lightbox_prettyPhoto" title="">
<img src="https://focuscfo.com/wp-content/uploads/2015/11/listenUp2.jpg"
alt="YouTube" />
</a>
</p>
</div>
<?php
if ( is_mobile() ) {
echo '<div>
<p style="text-align:center;"><a href="https://www.youtube.com/watch?v=tmz1jwED35Q&rel=0">
<img src="https://focuscfo.com/wp-content/uploads/2015/11/listenUp2.jpg" style="max-width:400px">
</a></p>
</div>
<div>';
}
?>
<?php
if ( is_ipad() ) {
echo '<div>
<p style="text-align:center;"><a href="https://www.youtube.com/watch?v=tmz1jwED35Q&rel=0">
<img src="https://focuscfo.com/wp-content/uploads/2015/11/listenUp2.jpg" style="max-width:400px">
</a></p>
</div>
<div>';
}
?>
]]>
I’m having issues with the iPad not behaving properly.
On this page:
https://entreedestinations.dreamhosters.com/trip/ultimate-rockies-by-rail/
halfway down the page, I have a series of images, Days 1-2, Days 4-5…
These are clickable and open a fancy box.
I don’t want this fancybox to open up on tablets or mobile, so in the code, I added:
<?php if( !is_handheld() ){ ?>
<a href="<?php echo $image_url; ?>">
<?php } ?>
I also tried ( !is_mobile() || !is_tablet() )
and the conditional is on the closing </a>
of course.
For some reason, the phone works, but I can’t get the iPad to work.
The weirdest thing is that when I put
<?php if(is_handheld()) { echo "non desktop";} ?>
near the top of the slideshow, that statement appears… so it should work, no?
Hey,
this is an absolute perfect plugin.
But does it really support all cases like on https://demo.mobiledetect.net/
If i test i.e isLenovoTablet(), it is not supported !
Perhaps you know the answer ??
thanks in advance
and keep up with the good work.
best vomo
Hello,
Do you include this in is_mobile() – if not, is there a reason not to? If there is a showstopping reason not to, is there a way I can do this myself?
We’re using this plugin extensively, along with purely responsive code, but Google is ranking our pages lower because the mobile bot does not see the viewport resize with javascript (although all mobile devices do see it), so it thinks we are not optimized for mobile. I’d like to use is_mobile() to resize the viewport, but that won’t help with the Google mobile bot unless it thinks it’s included. Any ideas? Thank you.
The new Googlebot for smartphones user-agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12F70 Safari/600.1.4 (compatible; Googlebot/2.1; +https://www.google.com/bot.html) (updated August 2015)
Does this use shortcodes also? Or just all for function.php or theme php pages?
]]>Hi,
Thanks for the great plugin.
My problem is I can’t seem to make work my Jquery script with the is_android condition.
The script works without the condition.
And I can use the condition with some php echo.
But it doesn’t work when I put the script in the condition.
This code is in the homepage-menu.php file of my theme
<?php if ( is_android() ){ ?>
<script>
$(document).ready(function() {
$(“#menu-item-900”).click(function(){
window.alert(“Merci d’utiliser l’application”);
});
});
</script>
<?php }?>
Do you have any idea ?
Thanks in advance !
]]>I used this code in my theme functions.php
if (is_handheld()) {
wp_enqueue_style('handheld', get_template_directory_uri() . '../../mobile.css');
}
but now with the latest update i get “Fatal error: Call to undefined function is_handheld() in /web/htdocs/…/…/…/…/…/functions.php on line 44”
until the update it loaded the request css only on tablet and phone as expected…
]]>Sorry to be thick but I would just like to disable the sidebar on mobiles where do I paste the following code:
<?php
if (!is_mobile()) {
get_sidebar();
}
?>
Hi Scott! Thank you for the great plugin! It really helped me out in many cases except for one. I can not enqueue additional .css for mobiles and tablets. ( need to disable parallax effects for them)
I open functions.php where i have the section with the following code
add_action('wp_enqueue_scripts', 'heal_cc_script');
if(!function_exists('heal_cc_script')) {
function heal_cc_script(){
wp_enqueue_style('bootstrap', CC_CSS .'bootstrap.min.css' );
wp_enqueue_style('style', CC_CSS .'style.css' );
…ETC
I add
if (is_mobile() && is_tablet()){
function luck() {
wp_enqueue_style('noparallax', get_template_directory_uri() . '/style/noparallax.css');
}
}
after the closing brackets of the previous function and also add ” ‘luck’ in add_action like this:
add_action('wp_enqueue_scripts', 'heal_cc_script');
noparallax.css definetly works and is placed in /root/style folder.
After updating nothing happens, however.( What am I doing wrong?
Can you give me an example of functioning code, please?
Thank You!
PS I also tried to enqueue stye within existing function after all the original .css files before the closing brackets but that led to site crash.
]]>Hi,
when it detects a mobile device, can it detects if a page is loaded in an App or in a Browser window?
Thanks