WPRentals Theme Documentation WPRentals Theme Documentation

  • Client Support
  • Video Tutorials
  • WPRentals
  • WPEstate
  • API
Home / Elementor WPRentals Studio, Menu Options / How to Add Login | Register Modal in Elementor Buttons

How to Add Login | Register Modal in Elementor Buttons

12698 views

Overview

This help explains how to add login and register options in a custom WPRentals header created with Elementor or WPRentals Studio.

There are two ways to do this:

  • Use the Website Login & User Menu widget in a WPRentals Studio header template.
  • Add custom Elementor buttons or links and use the WPRentals login/register modal IDs.
Important: The login and register modal windows are part of the WPRentals login/register system. The methods below only control how visitors open the modal from a custom header, button, or link.

CONTENT

  • Recommended method: Use the Website Login & User Menu widget
  • Alternative method: Add custom Elementor buttons
  • Create a Login modal button
  • Create a Register modal button
  • Use the modal IDs on other Elementor elements
  • Save and test
  • Important notes
  • Related help

Recommended Method: Use the Website Login & User Menu Widget

If you are creating a custom header with WPRentals Studio and Elementor, the easiest method is to use the dedicated header widget:

Website Login & User Menu

This widget is designed for custom WPRentals header templates and can show the login/register option and user menu in the header area.

To use it:

  1. Go to WPRentals Studio > Templates.
  2. Create or edit a Header template.
  3. Click Edit with Elementor.
  4. Search for the Website Login & User Menu widget in the Elementor widgets panel.
  5. Drag the widget into the header layout.
  6. Style the widget from Elementor as needed.
  7. Update the template and test the header on the front end.

Important: Use this method when you want the standard WPRentals login/register and user menu behavior inside a custom Studio header.

Alternative Method: Add Custom Elementor Buttons

You can also create custom Elementor buttons, links, icons, or menu items that open the WPRentals login or register modal.

Use this method when you want a custom button label or design, for example:

  • Login
  • Register
  • Owner Login
  • Join Now
  • Add Your Property
Important: This method opens the WPRentals modal. It does not add a full login or register form inside the page.

Create a Login Modal Button

To create a button that opens the login modal:

  1. Edit the page or header template with Elementor.
  2. Add a Button widget or edit an existing button.
  3. Set the button text, for example Login.
  4. Open the button Advanced tab.
  5. In the CSS ID field, add:
wprentals_elementor_login

Update the page or template and test the button on the front end. When clicked, it will open the WPRentals login modal.

Create a Register Modal Button

To create a button that opens the register modal:

  1. Edit the page or header template with Elementor.
  2. Add a Button widget or edit an existing button.
  3. Set the button text, for example Register.
  4. Open the button Advanced tab.
  5. In the CSS ID field, add:
wprentals_elementor_register

Update the page or template and test the button on the front end. When clicked, it will open the WPRentals register modal.

Use the Modal IDs on Other Elementor Elements

The same IDs can also be added to other Elementor elements, not only buttons.

For example, you can add the IDs to:

  • Text links
  • Icons
  • Images
  • Menu elements
  • Call-to-action elements

To do this, edit the Elementor element and add one of these IDs in the Advanced > CSS ID field:

  • wprentals_elementor_login – opens the login modal.
  • wprentals_elementor_register – opens the register modal.

Important: The CSS ID must be added without the # symbol. Use wprentals_elementor_login, not #wprentals_elementor_login.

Save and Test

After adding the widget or custom CSS ID:

  1. Click Update in Elementor.
  2. Open the page or header on the front end.
  3. Click the Login or Register button/link.
  4. Check that the correct WPRentals modal opens.
  5. Test both logged-out and logged-in behavior.
Important: Test this from the front end, not only inside the Elementor editor. The modal behavior is meant for visitors using the live page.

Important Notes

  • For custom WPRentals Studio headers, the recommended method is to use the Website Login & User Menu widget.
  • For custom Elementor buttons or links, use the CSS ID wprentals_elementor_login to open the login modal.
  • For custom Elementor buttons or links, use the CSS ID wprentals_elementor_register to open the register modal.
  • Add the ID in Advanced > CSS ID without the # symbol.
  • The custom button/link method opens the WPRentals modal. It does not place the full login or register form inside the page.
  • The login/register modal uses the main WPRentals login and register settings.
  • If the modal does not open, clear cache and test again in a private/incognito browser window.
  • If you use cache, optimization, or JavaScript delay plugins, disable those options while testing the modal.

Related Help

  • How to Add Login | Register Modal in Elementor Buttons
  • WPRentals Studio and Elementor Free
  • Login and Register Shortcodes for Elementor or Bakery
  • WPRentals Login & Register – How to Create Renters / Owners
  • Theme Options – Header
Elementor WPRentals StudioMenu Options

Related Articles

  • WPRentals Studio and Elementor Free
  • How to create a custom Contact page using the WPRentals Contact form builder for Elementor
  • How to Manage the WPRentals Map with Listings Widget
  • How to use the WPRentals Grids widget for Elementor

HELP CATEGORIES

  • 61. General
  • 72. Installation & Basic Setup
  • 373. How Booking Works
  • 18Advanced Search
  • 17Elementor WPRentals Studio
  • 14Email Notifications
  • 23FAQ
  • 14Installation FAQ
  • 10Menu Options
  • 33Owner & Renter
  • 8Page Templates
  • 24Property / Listing
  • 22Shortcodes
  • 4Supported Maps
  • 99Technical how to
  • 5Third Party plugins
  • 4Translation & Multi Languages
  • 3WordPress Blog Post
  • 13WordPress Widgets
  • 12WP Rentals Payments
  • 80WP Rentals Theme Options
  • 26WPML & Weglot

Join Us On

Powered by WP Estate - All Rights Reserved
  • Client Support
  • Video Tutorials
  • WPRentals
  • WPEstate
  • API