Support » Plugin: If Menu - Visibility control for Menu Items » Device > Mobile Not implemented correctly

  • fippy

    (@dgilfillan)


    Hi I think there is a problem with how you have implemented shoiwing or hiding menu items based on device. It seems you may rely on wp_is_mobile which does not really indicate a mobile device in wordpress. Indeed see documentation: https://codex.wordpress.org/Function_Reference/wp_is_mobile which says it should not relied upon for detecting phones.

    I highlight this issue because for example:

    Say you want a menu item to only appear on mobile devices, so you select Show if Device > mobile. Fire up the menu on a tablet such as an iPad and it will show there too, which is incorrect. An ipad/tablet are not considered mobile devices (certainly not in most peoples books).

    I think it may need looked at again and either implement via a better detection method or rely on css breakpoints perhaps?

    Anyway, otherwise a great plugin!!! Hopefully this area can be enhanced to provide better options with regard to Device?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Device > Mobile Not implemented correctly’ is closed to new replies.