Skip to content

HandyPlugins

  • Home
  • PluginsExpand
    • Magic Login Pro
    • Handywriter
    • WP Accessibility Toolkit
    • PaddlePress Pro
    • Easy Text-to-Speech
  • Docs
  • About
  • Blog
  • Contact
My Account
HandyPlugins
Popular Search shortcodehooktheemailredirect

Magic Login Pro

37
  • Installation & Configuration
  • Use magic login as the default login method?
  • Brute Force Protection
  • WooCommerce Integration
  • Easy Digital Downloads (EDD) Integration
  • Token Lifespan
  • Disable Magic Login for a Specific User
  • Login with Code: Flexible Passcode-Based Authentication
  • SMS Login – Passwordless Authentication with SMS
  • Magic Login REST API
  • QR Code Login
  • CLI Command
  • Add Login form to a Page
  • Reset Tokens
  • Auto Login Links
  • Token Validity
  • Login Redirect
  • Shortcode
  • Login Email Customization
  • Login Request Throttling
  • IP Check
  • Domain Restriction
  • Registration
  • Spam Protection
  • How to Add Magic Login to Any of Outgoing Emails?
  • Customize Default Messages
  • nG Firewall
  • Dynamically Adjust Token TTL
  • How to change Sender Details?
  • Disable Magic Login for specific roles
  • Customizing Login Session Duration
  • Magic Login Twilio Integration
  • Magic Login – FluentCRM Integration
  • Reset Magic Login Links for a User
  • Hooks
  • Tools – Reset, Export & Import Magic Login Settings
  • Magic Login Elementor

PaddlePress Pro

27
  • Installation & Configuration
  • How does PaddlePress PRO work?
  • Automatic account creation
  • How to set up a membership website?
  • Setup a Development Environment
  • Protect Download Files on NGINX
  • Software Licensing
  • Software Licensing API
  • Updater Implementation for WordPress Plugins
  • Updater Implementation for WordPress Themes
  • Release a New WordPress Product
  • Customer Dashboard (My Account) Page
  • Checkout Buttons
  • Custom Redirect After Successful Checkout
  • How does the domain count?
  • Emails
  • Accessing Readme through a Shortcode
  • How to Sell WordPress Products?
  • Releasing Beta Versions of a WordPress Product
  • Paddle Billing
  • Customer Dashboard
  • Membership Levels
  • Restrict Content
  • Add a Custom Payment Action
  • How to customize “Download” Button?
  • Adding Manual Payments
  • Composer Support for Private WordPress Packages

Handywriter

11
  • Installation & Configuration
  • Write a Blog Post
  • Create a Summary
  • Suggest a Title
  • Keep records of AI generated Contents
  • Grammar & Spelling Fixer
  • Plagiarism Check
  • Content Templates
  • How to create a Meta Description?
  • How to complete a sentence?
  • How does credit calculation work?

Easy Text-to-Speech

5
  • Installation & Configuration
  • Using with Block Editor
  • Using with Classic Editor
  • OpenAI Integration
  • ElevenLabs Integration

WP Accessibility Toolkit

3
  • Customization
  • Hotkeys: Quick Navigation and Efficiency
  • Do not show the accessibility toolkit on the specific page

FAQ

1
  • How to Enter Your VAT Number for VAT Deduction at Checkout
  • Home
  • Docs
  • Magic Login Pro
  • Shortcode
View Categories

Shortcode

You can easily display the Magic Login form anywhere on your website using the following shortcode:

[magic_login_form]

In most cases, it will blend nicely with your site’s design out of the box. However, if you wish to adjust the appearance, you can fully customize it with your own CSS.

Shortcode Attributes #

Starting from version 2.1, Magic Login includes additional shortcode attributes for greater flexibility.

AttributeDescription
redirect_toThe target URL after login. By default, it redirects to the page where the shortcode is placed. (Note: If redirection rules are enforced via plugin settings, they will override this value.)
hide_logged_inControls whether to display the form to logged-in users. Accepts "true" (default) or "false".
error_messageCustom error message displayed when a user does not exist.
info_messageInformational text displayed by default on the form.
success_messageMessage shown after a successful email send.
labelCustom label text for the input field.
button_textCustom text for the submit button.
classAdd custom HTML classes to the form wrapper for styling.

Hooks #

You can control the form’s target URL programmatically using:

magic_login_shortcode_form_action

Or set a specific redirect address directly in the shortcode:

[magic_login_form redirect_to="https://example.com/account"]

Using in Custom Templates #

You can render the form directly within PHP templates:

<?php echo do_shortcode('[magic_login_form redirect_to="https://example.com/account"]'); ?>

Displaying the Form for Logged-in Users #

By default, the shortcode doesn’t display anything for logged-in users. This helps prevent showing a login form where it’s not needed (e.g., on “My Account” pages). If you want the form to appear even for logged-in users, set hide_logged_in=”false”

[magic_login_form hide_logged_in="false"]

Custom Styling #

You can easily restyle the Magic Login form using the available IDs and classes.
Here’s a minimal CSS example you can use as a starting point:

#magic-login-register .registration_result .error,
#magic-login-register .registration_result .info,
#magic-login-register .registration_result .success,
#magic-login-shortcode #login_error,
#magic-login-shortcode .message,
#magic-login-shortcode .success {
  border: none !important;
  padding-left: 0 !important;
}

#magic-login-shortcode {
  width: auto !important;
}

#magic-login-shortcode input {
  font-family: 'Open Sans', Helvetica, Arial, sans-serif !important;
  font-size: 16px !important;
  background: #fff !important;
  color: rgba(0, 0, 0, 0.6) !important;
  border-radius: 5px !important;
  border: 1px solid #dcdcdc !important;
  padding: 12px 20px !important;
}

#magic-login-shortcode .magic-login-submit {
  background: #2f265c !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 12px 24px !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  margin-top: 10px !important;
}

Tips for Custom CSS #

  • Target the wrapper IDs #magic-login-shortcode or #magic-login-register for general form styling.
  • Use .magic-login-submit for the submit button, and standard input selectors for text fields.
  • Keep overrides minimal — most designs can be achieved by adjusting colors, borders, or typography.
  • To ensure compatibility, use !important only when necessary.

Was this guide helpful for you?
Updated on November 11, 2025
Login RedirectLogin Email Customization
Table of Contents
  • Shortcode Attributes
  • Hooks
  • Using in Custom Templates
  • Displaying the Form for Logged-in Users
  • Custom Styling
    • Tips for Custom CSS

HandyPlugins

Explore

Home
Blog
Contact Us
My Account

Products

Magic Login Pro
Handywriter
Easy Text-to-Speech
PaddlePress Pro
WP Accessibility Toolkit

Follow Us

Twitter
Facebook
GitHub
WordPress

2025 – HandyPlugins.co | Hosted on WPHandle and optimized with Powered Cache

  • Terms and Conditions
  • Privacy Policy
  • Cookie Policy
  • Home
  • Plugins
    • Magic Login Pro
    • Handywriter
    • WP Accessibility Toolkit
    • PaddlePress Pro
    • Easy Text-to-Speech
  • Docs
  • About
  • Blog
  • Contact
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.