• Resolved Ylvaana

    (@ylvaana)


    Hi, this simple plugin is EXACTLY what i was looking for so thank you. I have two questions–

    1.) After installation & activation, the tablet view of the site editor is still showing the mobile layout, not the desktop layout. Will the actual view in a tablet be that of desktop regardless, or is this a sign that the plugin is not working for me? (i don’t have access to a tablet at the moment, and my website is not live yet either)

    2.) In the plugin description, you’ve mentioned this is for sites that use different content for desktop vs mobile. By that did you mean sites that are mobile-responsive and simply show a different layout for the content on desktop, or did you mean sites that actually have some different content items on the two versions (like some content that may show only on mobile version but not desktop for example)? I am very new to WP, the first condition is true for my site so i’m trying to figure out if the plugin will work for me or not.

    I really want tablet users to see desktop version of my site ;~; Any help will be much appreciated

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Pothi Kalimuthu

    (@pothi)

    For Q1 (site editor): Support for wp_is_mobile is needed for site editor or any code to work with this plugin. When there is no wp_is_mobile, this plugin simply just doesn’t do anything at all. I don’t think the site editor will support wp_is_mobile in the near future.

    For Q2 (front-end): Like the previous answer, a theme needs to do something with wp_is_mobile to display different content for mobile users. 99.99% of the sites don’t show different content for mobile users. Those that do, usually show reduced, striped-down version of the content to make a site load much faster on mobile data (or wifi data). Basically, what you see in mobile and desktop won’t make any difference for normal eyes. But, behind the scene, a lot of stuff may be fine-tuned to load the mobile version faster (with the help of wp_is_mobile function). For example, we may not need to show some part of side-bar widgets for mobile visitors. So, they are usually removed altogether by some sites with the help of wp_is_mobile. Some ads are removed by some sites for mobile visitors (while others increase the number of ads on mobile). The possibilities are endless.

    Basically, when there is no wp_is_mobilefunction in the theme or anywhere else, then this plugin is of no use for such sites or part of the sites.

    Thread Starter Ylvaana

    (@ylvaana)

    Thank you for such detailed and quick reply ?? Read the whole explanation, learned new things.

    How can i check if my theme uses wp_is_mobile? It does have a mobile version of the site which is different from desktop version (and the tablet view is the same as mobile view) but i don’t know if that necessarily means the wp_is_mobile function is in use or not

    Since i can’t rely on the theme editor to be sure whether the plugin is working, i’ll make sure to get my hands on someone’s tablet soon to check. In the meantime, thank you so much for the support!

    Plugin Author Pothi Kalimuthu

    (@pothi)

    wp_is_mobile isn’t used by 99.99% of the themes unless specifically mentioned somewhere in the theme documentation.

    You can ask the theme developer if wp_is_mobile is used.

    Alternatively, you may search through all the files (within the theme) for the word “wp_is_mobile”. Here’s the one-liner, if you use a terminal in a macOS or GNU/Linux…

    find wp-content/themes/ -type f -iname '*.php' -print0 | xargs -0 grep -in wp_is_mobile
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.