Disable WordPress mobile view

Disable WordPress mobile view

Disable WordPress mobile view


If you want to see the desktop version of your site, also on mobile devices (smartphones, tablets, etc.), just follow the instructions below.
A simple method to disable mobile view is to comment the next line in header.php file from theme directory (/wp-content/themes/themename/).

<meta name="viewport" content="width=device-width, initial-scale=1">


<!-- <meta name="viewport" content="width=device-width, initial-scale=1"> -->

Modified line is a meta tag that refers to the “viewport”, which is a mobile meta tag to specify dimensions for a mobile browser to use, and well as control some functionality such as browser scaling, meaning the zoom.
I tested this on Ample theme for WordPress, but I’m sure it works on most themes.
Don’t forget to make the same change after an theme update!

Disable WordPress mobile view

Disable WordPress mobile view
Tagged on:     

Leave a Reply

Your email address will not be published. Required fields are marked *

Skip to toolbar

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.