Removing responsive CSS

From your WordPress Dashboard, navigate to Appearance → Editor. When the editor screen loads, select Header (header.php) file from the list on the right, and remove the line including viewport tag from it:

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
Then select Stylesheet (style.css) file, scroll down nearly to the bottom, until you find the section which starts:
/*

# Media Queries

*/

If your theme does have the media queries section in the stylesheet, we can proceed! You now need to select from the start of that section all the way to the bottom of the file and then delete your selection.

With the selection deleted, you just need to click Update File and your site will now no longer have any responsive functionality.

END
本文作者: 文章标题:关闭 WordPress 自适应 Disable Responsive Layout in WordPress
本文地址:https://e.ki/16/
版权说明:若无注明,本文皆e.Ki原创,转载请保留文章出处。
Last modification:December 13th, 2020 at 06:22 pm
爱我有很多种方式,比如说打赏我。