Prevent Landscape Rotation

January 10, 2024

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.

  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/

Screenshots

  1. Message alert showing when you rotate the device to landscape.

    Message alert showing when you rotate the device to landscape.

  2. Settings Page.

    Settings Page.

  3. 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

  • Initial release.

Details

  • Version: 2.1
  • Active installations: 2,000
  • WordPress Version: 4.3
  • Tested up to: 6.4.5

Ratings


5 Stars
4 Stars
3 Stars
2 Stars
1 Stars