Contributors: Shane Rounce of AceMedia.ninja
Tags: login, block, custom login, WordPress, Gutenberg, security
Requires at least: 6.3
Tested up to: 6.7
Stable tag: 0.426.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Customize your WordPress login page with a fully-integrated Gutenberg block, giving you complete control over the design and functionality.
Ace Login Block allows you to replace the default WordPress login page with a custom page of your choosing, all designed and managed within the block editor. This lets you create a branded login experience for your users while leveraging the flexibility and ease of Gutenberg.
- Replace the default WordPress login page with a custom block-based design.
- Full integration with the block editor, giving you complete control over the login page layout.
- Allow the default WordPress login functionality for POST requests to ensure smooth login submissions.
- Customize redirects and add additional fields or branding elements to the login page.
- Prevent further execution of the default
wp-login.phpafter your custom login template loads.
Ace Login Block provides a seamless way to craft unique, branded login experiences while ensuring compatibility with WordPress’s login handling.
The source code for this plugin, including uncompressed JavaScript and CSS files, is available on GitHub. You can find it here:
GitHub Repository: Ace Login Block on GitHub
We use npm and webpack to compile assets for production. To contribute, please fork the repository, make changes, and submit a pull request.
This section describes how to install the plugin and get it working.
- Upload the plugin files to the
/wp-content/plugins/ace-login-blockdirectory, or install the plugin through the WordPress plugin screen directly. - Activate the plugin through the 'Plugins' screen in WordPress.
- Navigate to the "Ace Login Block" settings and select the page to use for your custom login page.
Once the plugin is activated, go to the "Ace Login Block" settings in your WordPress dashboard and select the page you want to use as your custom login page. You can then use the block editor to design the page.
Yes, WordPress will continue to handle all login submissions via POST requests, ensuring that authentication continues to work normally. Ace Login Block simply replaces the display of the login page with your custom page design for GET requests.
Yes, you can add custom blocks, text, images, or any other elements within the block editor to fully customize the layout of your login page.
If you disable Ace Login Block, WordPress will revert to the default wp-login.php page for login access.
- Custom login page built using Ace Login Block in the block editor.
- Example of branded login page after replacing the default WordPress login page.
Release Date: 2024-12-05
- Fixed the selector for the form submission button.
Release Date: 2024-11-11
- Allows users to be redirected based on role-specific settings, even if no custom login page is set.
Release Date: 2024-11-11
- Ensures login block functionality is only active when a custom login page override is set.
- Prevents interference with the default WordPress login process when no override page is configured.
Release Date: 2024-10-12
- New Feature: Implemented dynamic login redirects based on user roles, allowing specific redirect URLs for each role within the settings.
- Enhancement: Updated
ace-login-block.phpto handle dynamic redirects, ensuring users are sent to the appropriate page after logging in based on their role. - Enhancement: Modified
package-lock.jsonandpackage.jsonto include new dependencies required for the updated functionality. - Enhancement: Enhanced
src/block.jsonto support role-based page listings, making it easier to manage page options for each role. - Enhancement: Updated
src/login-block.jsto dynamically list available pages per role, improving the settings interface for selecting redirect URLs. - Important Note: Ensure that roles are properly configured in the WordPress admin to utilize the dynamic redirect feature effectively.
Release Date: 2024-10-12
- New Feature: Introduced a custom login block structure to fully control the layout of the form using native block interactions.
- New Feature: Added new blocks for the username and password input fields.
- Enhancement: Dynamic form action URL is now set using localized data from PHP.
- Enhancement: Added nonce handling to the login form for improved security.
- Enhancement: Improved reliability of redirect handling after login.
- Bug Fix: Resolved an issue with form submission not being detected as a POST request.
- Bug Fix: Fixed redirection issues caused by interception from the custom page template.
- Bug Fix: Improved logout handling to ensure users are correctly redirected after logging out.
- Important Note: Ensure the logout link includes the correct
action=logoutparameter and nonce.
Release Date: 2024-10-11
- Bug Fix: Resolved issues with form redirection that affected login functionality in v0.420.
- Enhancement: Added a new option to allow users to show the "Show Password" toggle in the login block.
Release Date: 2024-10-11
- Initial Release: First release of the Ace Login Block plugin.
- Key Features:
- Custom Login Page: Replace the default
wp-login.phpform with a page created in the block editor. - Post Request Handling: Securely handles login form submissions.
- Seamless Template Loading: Automatically loads the selected custom page template.
- Block Editor Integration: Customize your login page using blocks.
- Debugging: Debug messages included to assist with development.
- Custom Login Page: Replace the default
- Important Note: Known issues with form redirection in this version, recommended to use v0.421 for better performance.
Ace Login Block is perfect for developers and site owners looking to create unique, branded login experiences. By leveraging the block editor, you can design your login page however you see fit, from adding custom fields to embedding brand logos or messages. The plugin ensures that login functionality remains intact while offering flexibility over the appearance and content of the login page.
To set up a development environment for the plugin, ensure that you have Node.js installed and then run the following commands:
# Install dependencies
npm install
# Build the plugin for production
npm run build
# Watch for file changes in development
npm run dev
# Run linter to check for code issues
npm run lint
# Format code automatically
npm run format
# Create a zip file for deployment
npm run zip