• Resolved JapeNZ

    (@japenz)


    Hi there,

    I’ve noticed that my mobile pages are being loaded on tablet size screens, I don’t think it use to do that.

    Does it differentiate between mobile and tablet?
    Is ther a setting I need to alter so it only shows pages on mobile and not tablet?

    Thank you for your help!

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author Jose Mortellaro

    (@giuse)

    Hi @japenz

    Specific Content For Mobile like the WordPress core considers tablets as mobile devices.
    If you want to change this standard behavior you need to add this line of code to the functions.php of your child theme or to a functional plugin:

    add_filter( 'scfm_is_tablet_mobile', '__return_false' );

    I hope it helps.

    Best regards

    Jose

    Thread Starter JapeNZ

    (@japenz)

    Hi @giuse,

    Thanks for your help 🙂

    Unfortunately this doesn’t seem to have worked for me.
    It’s not the end of the world by any means, and it’s really only on the homepage that I need it to be aware of the difference.

    Is there a snippet you’re aware of I can add that stop Specific Content For Mobile running if the screen size is over a specific size?

    I may try and set up a tablet specific page with a redirect, though that’s not ideal.

    Plugin Author Jose Mortellaro

    (@giuse)

    Hi @japenz

    Theoretically,, it has to work. I suggest you clear any kind of cache and check again.

    SCFM doesn’t know the screen size. It only knows the information sent by the browser, and that information don’t include. the screen size.

    Have a great day!

    Jose

    Thread Starter JapeNZ

    (@japenz)

    Hi @giuse,

    Yeah that’s what I figured too… but caches are cleared and my tablet still shows the mobile page, as does chrome test area with responsive dimesion and tablets selected.

    No idea why it’s not working for me, but I certainly you tyring to help 🙂

    I have the code you sent active as a snippet, are you able to have a look on a tablet and let me know what you see?

    My website is https://comicbookshop.co.nz/

    If you have a slider then you’re looking at the standard page, if you have two product thumbnails then it’s the mobile page.

    Thanks again for your help!

    @japenz, just wanted to say that I checked your site on an iPad Pro and an iPhone and it showed me 2 different home pages. Nice site!

    Thread Starter JapeNZ

    (@japenz)

    Hi @mahoney,

    Thank you for taking the time to check my site for me!

    The issue must be local I guess… Doh!
    I’ll need to find a better way of testing haha!

    Really appreciate you letting me know 🙂

    @giuse looks like we can mark this one as resolved, thank you so much for your help!

    I have the same issue here. However can you explain how you solved this. Adding the line add_filter( ‘scfm_is_tablet_mobile’, ‘__return_false’ ); didn’t work on my side. Tablets still show the same content as mobile phones….

    Plugin Author Jose Mortellaro

    (@giuse)

    @flyingmh

    have you cleared the cache of your tablet after adding that line of code?

    Hi Jose Many Thanks. Now it works.

    Plugin Author Jose Mortellaro

    (@giuse)

    You are welcome Flyingmh. Happy to know it works.

    Have a great day!

    Jose

    Hi Jose I activated the plugin on our production system. Everything seems to work fine with Safari Browser. However Chrome still displays the mobile version.

    I licensed the plugin and activated the feature consider all tablets NOT as mobile device… All caching plugins within wordpress are disabled.

    Did some testing with different Tabs and it seems that Chrome in general has this problem.

    Plugin Author Jose Mortellaro

    (@giuse)

    Hi @flyingmh,

    are you sure the cache of Chrome was deleted on your tablet after activating that feature?

    If you are sure, I suggest you visit this page with the same tablet and browser:

    https://josemortellaro.com/collect-browser-information/

    Then please, send me the information by using my contact form at https://josemortellaro.com/contact/. The most important information is the User Agent.

    Have a great day!

    Jose

    Hi Jose I just sent out the information

    I have deactivated the plugin. When trying to activate the Plugin it throws an error…. I also sent you the error via the contact form

    Plugin Author Jose Mortellaro

    (@giuse)

    Thank you very much @flyingmh.

    I’ve right now answered your emails.

    Have a great day!

    Jose

Viewing 15 replies - 1 through 15 (of 19 total)

The topic ‘Does this still work with tablets?’ is closed to new replies.