Blog / WordPress / How to Load a Login, Edit Profile or Registration Form in a Popup

How to Load a Login, Edit Profile or Registration Form in a Popup

Cristian Antohe
Last Updated: 15/06/16

Ever landed up on a webpage that asked you to register or login, only to forget the original article / page where you wanted to be after registering or login in? Doing those steps is ok, after all you probably wanted to take those actions anyway.

But why not try and make the entire experience a little bit better and more user friendly?

Using custom redirects could help with that, however a more elegant solution would be to login or register from a popup or lightbox.

Custom Profile Menus for Profile Builder

The Custom Profile Menus Addon for Profile Builder makes it really easy to:

  • optimize your user experience by allowing users to login and register from anywhere on your site where there is a navigation menu
  • display different menu items to logged in users or filter based on role
  • uses an entire WordPress page so you can have your own copy or message, not just the forms

login_popup

Setting it all up

When creating a popup with a login form, first thing we want to do is create standalone pages for login, edit profile and register forms using the wppb-login, wppb-edit-profile and wppb-register shortcodes respectively.

The main reason for having this setup this way is to have a complete page where you can also add your own copywriting, images or other shortcodes. This opens up the door for more flexibility further down the line.

Once that’s done, the only thing left is to add those pages to your top or sidebar menus from WordPress.

cpm6

Switch Login/Logout menu items based on logged in status

To take this further, we’ll want to display different menu items based on the user’s logged in status or his user role.

You can chose between showing a particular menu item to:

  • Everyone – this is the default. All users will see these menu items
  • Logged Out Users – this is perfect for the login and register menu items
  • Logged In Users – edit profile and logout are the menu items that will most benefit from it, however, with the possibility to filter menu items further based on user role, you can also display different menus, categories, etc. to different users

Compatibility with Profile Builder

Since this is a Profile Builder Addon, we’ve taken great care to make sure redirects enabled on your login and registration forms are working with the new popup functionality.

Similarly, it’s also fully compatible with the Social Connect Addon, so you can combine normal WordPress login and registration functionality with the Facebook, Twitter or Google connect.

You can try out a Custom Profile Menus demo or simply play around with it by activating the addon on your very own Profile Builder Demo site.

Get Custom Profile Menus

[rm_post_images columns=”4″ include=”57061,57046,57045,57043″ rel=”pbsc”]

From the blog

Related Articles

Profile Builder Update: No More Profile Builder Hobbyist?

Author: Flavia Mezzetti
Last Updated: April 26th, 2023

If you’re already a Profile Builder user, you might have noticed some changes around here in the past few weeks. And that’s especially if you’ve purchased the Hobbyist version of Profile Builder. And you’d be right! Some changes did take place within the plugin, and thus, that’s what we’ll talk about in this blog post, […]

Continue Reading

How to Eliminate WordPress Spam Registrations (Step-by-Step Guide)

Author: Adrian Spiac
Last Updated: December 11th, 2019

Looking for a way to cut down on WordPress spam registrations? If your WordPress site is set to allow user registration (like a membership site or WooCommerce store), then it's probably vulnerable to user registration spam from spam-bots. Finding a way to eliminate, or at least reduce, WordPress spam registrations is important so that you can focus your efforts and resources on your real users. No matter what type of site you're running, there are some tried-and-true tactics that you can apply to stop spam registrations in their tracks, and they're all available in one single plugin.

Continue Reading
buddypress_pb_banner_01

How to Build Online Communities Using Profile Builder & BuddyPress

Author: Patricia Borlovan
Last Updated: August 15th, 2023

Building a WordPress community website can be a great idea not only because you can control the experience of the user, manage SEO and inbound traffic, but also because I think a community is more about nurturing a constant, active presence and happy experience. If we speak about the integration between our Profile Builder & […]

Continue Reading

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.