Plugin Support
Peter
(@petersquirrly)
Hi @banijadev ,
It’s not possible to remove the menu from the Browser via javascript, but you can use the option under Disable Inspect Element to display a blank screen when the Inspect Element is activated https://ibb.co/kSB8WcX
This is how it will end up looking. https://ibb.co/xhDWGpq
Thread Starter
banija
(@banijadev)
wonderful, its worked, thanks
how about this notice?
This may not work with all new mobile devices.
is it need work with User Agent or something?
Plugin Support
Peter
(@petersquirrly)
Yes, it is based on User Agent and Registered Mobile in WordPress and browsers. But with new phones, until they are registered, it may not work.
Thread Starter
banija
(@banijadev)
so how i can contribute add new user agent ?
Plugin Support
Peter
(@petersquirrly)
https://developer.wordpress.org/reference/functions/wp_is_mobile/
If it’s mobile, WordPress tells us that it’s mobile and then we add an exception in inspect element.
If it doesn’t appear that it’s mobile, then we check if the inspect element is activated.