EasyWP Custom Login Status

Version: 1.0 Requires WordPress: 5.0+ Requires PHP: 7.0+ License: GPLv2 or later

Description

EasyWP Custom Login Status is a lightweight and practical WordPress plugin that adds an elegant login status bar to the top of your website's front-end. It dynamically switches content based on the user's login status, requiring no complex configuration—just activate and use.

Core Features

Dynamic Login Status Display

Guests see "Login" and "Register" shortcuts – logged-in users see "Hello, [Username]" (links to profile) + "Logout" button.

Elegant Responsive Design

Built-in gray background style with bottom border – mobile-optimized (screen ≤ 768px) with centered content.

Hover Effects

Highlight for login/register links – darker background for logout button on hover, improving user experience.

Lightweight & Non-Redundant

Class-based architecture to avoid global variable pollution – loads via WordPress native hooks.

Zero Configuration

No additional database operations – activates instantly, compatible with most WordPress themes.

Installation Guide

  1. Download the plugin zip file.
  2. Log in to your WordPress admin dashboard, go to "Plugins" → "Add New" → "Upload Plugin", select the downloaded zip file.
  3. After upload completes, click "Activate Plugin".
  4. The plugin takes effect immediately – check the top of your website's front-end for the login status bar.

How to Use

  • Once activated, the login status bar is automatically rendered at the top of the front-end.
  • Guest users can click "Login" or "Register" to access the corresponding pages.
  • Logged-in users can click their username to enter the profile edit page, and click "Logout" to exit.
  • No manual code modifications required – built-in styles are compatible with most themes.

Customization (Optional)

  • To modify login/register links: Edit the login/registration URLs in the plugin code.
  • To override styles: Add custom CSS to your theme's "Additional CSS" section (target classes like .custom-login-status-bar).

Frequently Asked Questions

What if the plugin style conflicts with my theme?
The plugin's styles are loaded via built-in CSS. If conflicts occur, override the corresponding style classes (.custom-login-status-bar, .login-status-container, etc.) in your theme's custom CSS.
Can I modify the destination of login/register links?
Currently, the plugin links to WordPress native login/registration pages by default. To customize the links, modify the login/registration URLs in the plugin code.
How to hide the status bar?
Simply deactivate the plugin in WordPress admin "Plugins" section.

Changelog

v1.0

  • Initial release
  • Implemented dynamic front-end login status display
  • Built-in responsive styles for desktop and mobile devices
  • Class-based design with WordPress native hook integration