LoginCanvas
Enhance your WordPress login page with random background images and header/footer support
by Team Zeppelin · github.com/buildswithadnan/logincanvas · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/buildswithadnan/logincanvas/archive/refs/heads/main.zipWordSprint Developers Hackathon 6.0

LoginCanvas Plugin Documentation
Problem Statement
Task 1: Random Background Images
Implement functionality to allow users to select multiple background images through WordPress Customizer. These images will display randomly on the login page, enhancing visual variety and user experience.
Requirements:
- Multiple image selection in Customizer
- Random image display on page load
- Smooth background transitions
Task 2: Header/Footer Integration
Add support for displaying the site's header and footer on the WordPress login page, which isn't available by default.
Requirements:
- Option to enable/disable header/footer
- Seamless integration with login page
- Maintain responsive design
- Preserve login form functionality
Overview
LoginCanvas is a WordPress plugin that enhances the login page experience by adding support for random background images and header/footer integration. This plugin is compatible with WordPress 6.4.3+ and PHP 8.3+.
Features
- Multiple background image support with random display
- Header and footer integration on the login page
- Customizer integration for easy configuration
- Responsive design
- Compatible with latest WordPress and PHP versions
Installation
- Upload the
logincanvasfolder to the/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
- Go to Appearance → Customize → LoginCanvas Settings to configure
Configuration
Setting Up Background Images
- Navigate to Appearance → Customize → LoginCanvas Settings
- Click "Select Images" under Background Images
- Upload or select multiple images from your media library
- Images will be randomly displayed on each login page load
Enabling Header and Footer
- Go to Appearance → Customize → LoginCanvas Settings
- Check the "Enable Header and Footer" option
- Save your changes
- Your site's header and footer will now appear on the login page
Technical Details
System Requirements
- WordPress 5.0 or higher
- PHP 7.2 or higher
- Modern web browser
File Structure
logincanvas/
├── includes/
│ ├── class-logincanvas-customizer.php
│ ├── class-logincanvas-background.php
│ └── class-logincanvas-header-footer.php
├── assets/
│ └── css/
│ └── login-style.css
├── languages/
└── logincanvas.php
Actions and Filters
The plugin provides several actions and filters for customization:
// Modify background images array
add_filter('logincanvas_background_images', 'custom_background_images');
// Modify header output
add_filter('logincanvas_header_content', 'custom_header_content');
// Modify footer output
add_filter('logincanvas_footer_content', 'custom_footer_content');
Troubleshooting
Common Issues
-
Images Not Displaying
- Check if images are properly uploaded
- Verify file permissions
- Ensure images are accessible via URL
-
Header/Footer Not Showing
- Verify the option is enabled in Customizer
- Check theme compatibility
- Review server error logs
Support
For support, please:
- Check the documentation
- Review WordPress forums
- Submit an issue on GitHub
- Contact plugin support
Security
- All user inputs are sanitized
- Proper nonce verification
- Secure file handling
- XSS prevention measures
Changelog
Version 1.0.0
- Initial release
- Background image randomization
- Header/footer integration
- Customizer controls
Team
Developed by:
- Muhammad Adnan Sultan (LinkedIn)
- Jaweria Saddique (Portfolio)
- Amna Abaidullah (GitHub)
License
GPL v2 or later. See License for details.