Prevent Landscape Rotation Plugin
Prevent Landscape Rotation On Mobile Website.
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.
If you need to Prevent Portrait Rotaion, Please contact me.
Installation
This section describes how to install the plugin and get it working.
- Download and extract plugin files to a folder in your wp-content/plugin directory.
- Activate the plugin through the WordPress admin interface.
- 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/
Screenshots
Message alert showing when you rotate the device to landscape.
Settings Page.
Settings Page.
Changelog
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