Title: Prevent Landscape Rotation
Author: Arul Prasad J
Published: <strong>2020 年 3 月 19 日</strong>
Last modified: 2025 年 4 月 25 日

---

搜索插件

![](https://ps.w.org/prevent-landscape-rotation/assets/banner-772x250.jpg?rev=2263606)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/prevent-landscape-rotation/assets/icon-256x256.jpg?rev=2263606)

# Prevent Landscape Rotation

 作者：[Arul Prasad J](https://profiles.wordpress.org/arulprasadj/)

[下载](https://downloads.wordpress.org/plugin/prevent-landscape-rotation.2.1.zip)

 * [详情](https://cn.wordpress.org/plugins/prevent-landscape-rotation/#description)
 * [评价](https://cn.wordpress.org/plugins/prevent-landscape-rotation/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/prevent-landscape-rotation/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/prevent-landscape-rotation/#developers)

 [支持](https://wordpress.org/support/plugin/prevent-landscape-rotation/)

## 描述

This is a lightweight WordPress plugin that prevents landscape rotation on mobile
devices and display message!

Plugin uses standard actions, filters and SweetAlert Js only.
 If you love this 
plugin, [buy me a cup of coffee](https://paypal.me/arulprasadj?locale.x=en_GB).

If you need to Prevent Portrait Rotaion, [Please contact me](https://arulprasadj.com).

## 屏幕截图

[⌊Message alert showing when you rotate the device to landscape.⌉⌊Message alert 
showing when you rotate the device to landscape.⌉[

Message alert showing when you rotate the device to landscape.

[⌊Settings Page.⌉⌊Settings Page.⌉[

Settings Page.

[⌊Settings Page.⌉⌊Settings Page.⌉[

Settings Page.

## 安装

This section describes how to install the plugin and get it working.

 1. Download and extract plugin files to a folder in your wp-content/plugin directory.
 2. Activate the plugin through the WordPress admin interface.
 3. Start using in your theme

If you have any questions or problems please make a post here: https://wordpress.
org/support/plugin/prevent-landscape-rotation/

## 评价

![](https://secure.gravatar.com/avatar/c6611022a801a3fbe0491ddff4d8ec2ff5fb0f410390cf84d4f5ebdccb1fda81?
s=60&d=retro&r=g)

### 󠀁[Great Plugin](https://wordpress.org/support/topic/great-plugin-38777/)󠁿

 [nanonew](https://profiles.wordpress.org/nanonew/) 2024 年 4 月 14 日

Great Plugin

![](https://secure.gravatar.com/avatar/c34ec7e3ecd3e42768a691b2d282c9774436c027a0688f59b8190fcb1bd66450?
s=60&d=retro&r=g)

### 󠀁[Works well on mobiles, not on tablets](https://wordpress.org/support/topic/works-well-on-mobiles-not-on-tablets/)󠁿

 [newty](https://profiles.wordpress.org/newty/) 2024 年 4 月 3 日

Works well on mobiles but I got the reverse experience on tablets. A fix should 
be done for it.

![](https://secure.gravatar.com/avatar/386632690a2d57bf78f9f406403f448a67bb3f7743acd42d277b30d79baedd0d?
s=60&d=retro&r=g)

### 󠀁[very good](https://wordpress.org/support/topic/very-good-6417/)󠁿

 [milord85](https://profiles.wordpress.org/milord85/) 2022 年 6 月 1 日

simple and easy, maybe we need little more options like change bacground image, 
prevent various devices, example desktop tablet or large screen, in order to force
only the portrait mobile view. by the way it is a very good plugin

![](https://secure.gravatar.com/avatar/bd32ec9cd108d4da374f25e02a072568ef20be167ffcc318d2ca620be1435ec0?
s=60&d=retro&r=g)

### 󠀁[Works as advertised](https://wordpress.org/support/topic/works-as-advertised-793/)󠁿

 [apollosk](https://profiles.wordpress.org/apollosk/) 2022 年 1 月 5 日

Thanks for developing and maintaining this plugin. 🙂 It would be nice if you consider
adding more options for customization of how the plugin works and looks. Keep up
the good work. Cheers!

![](https://secure.gravatar.com/avatar/49179f8567920dce041b93f408fecefd75d437a90ed73e9f4828f4c27c7665f1?
s=60&d=retro&r=g)

### 󠀁[Best](https://wordpress.org/support/topic/best-1021/)󠁿

 [SITEWEB44](https://profiles.wordpress.org/siteweb44/) 2021 年 7 月 15 日

Good plugin ! Thank you for your solution, it's help a lot

![](https://secure.gravatar.com/avatar/265e46bd6f1971133a1c06e591ab2625ef9e737b38cf728199f5dba29725edda?
s=60&d=retro&r=g)

### 󠀁[Great Plugin](https://wordpress.org/support/topic/great-plugin-30751/)󠁿

 [tokodesign](https://profiles.wordpress.org/tokodesign/) 2021 年 5 月 3 日

Excellent plugin and great support! Simple to setup and haven't had any issues.

 [ 阅读所有7条评价 ](https://wordpress.org/support/plugin/prevent-landscape-rotation/reviews/)

## 贡献者及开发者

「Prevent Landscape Rotation」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Arul Prasad J ](https://profiles.wordpress.org/arulprasadj/)

[帮助将「Prevent Landscape Rotation」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/prevent-landscape-rotation)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/prevent-landscape-rotation/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/prevent-landscape-rotation/)，或
通过[RSS](https://plugins.trac.wordpress.org/log/prevent-landscape-rotation/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/prevent-landscape-rotation/)。

## 更新日志

#### 2.1

 * Confirmed working with WordPress 6.4.2
 * Fixed csrf issue
 * Minor bug fixes & security improvements.

#### 2.0

 * Fixed conflict with Preloader Plus plugin
 * Confirmed working with WordPress 5.8.1
 * New settings page (Now you can select/change text and colors).
 * Fixed message not showing while reloading landscape page.
 * Minor bug fixes & Improvements.

#### 1.1

 * CSS fix
 * Confirmed working with WordPress 5.6

#### 1.0

 * Initial release.

## 额外信息

 *  版本 **2.1**
 *  最后更新：**2 年前**
 *  活跃安装数量 **1,000+**
 *  WordPress 版本 ** 4.3 或更高版本 **
 *  已测试的最高版本为 **6.8.12**
 *  语言
 * [English (US)](https://wordpress.org/plugins/prevent-landscape-rotation/)
 * 标签
 * [dialogue](https://cn.wordpress.org/plugins/tags/dialogue/)[front end](https://cn.wordpress.org/plugins/tags/front-end/)
   [mobile](https://cn.wordpress.org/plugins/tags/mobile/)[prevent](https://cn.wordpress.org/plugins/tags/prevent/)
 *  [高级视图](https://cn.wordpress.org/plugins/prevent-landscape-rotation/advanced/)

## 评级

 4.7 星（最高 5 星）。

 *  [  6 条 5 星评价     ](https://wordpress.org/support/plugin/prevent-landscape-rotation/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/prevent-landscape-rotation/reviews/?filter=4)
 *  [  1 条 3 星评价     ](https://wordpress.org/support/plugin/prevent-landscape-rotation/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/prevent-landscape-rotation/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/prevent-landscape-rotation/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/prevent-landscape-rotation/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/prevent-landscape-rotation/reviews/)

## 贡献者

 *   [ Arul Prasad J ](https://profiles.wordpress.org/arulprasadj/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/prevent-landscape-rotation/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://paypal.me/arulprasadj?locale.x=en_GB)