Opening the popup
Your theme's account links open the popup out of the box. Add more openers with selectors, a shortcode or menu links.
- Account Links: Open from account and login links (on), Open on: Log in or Create an account
- Custom Triggers: CSS selectors
Account links
Links to the My Account page (and its sections, such as Orders) or the WordPress login page open the popup for logged-out visitors instead of leaving the page.
Log in (returning customers first) or Create an account (falls back to Log in when registration is off). Used for links to the My Account page itself.
| Link to | Opens |
|---|---|
| My Account page | The Open on view |
| A My Account section, e.g. Orders | Log in; after logging in the customer continues to that section |
| WooCommerce's lost-password page | Reset your password |
wp-login.php, ?action=register, ?action=lostpassword | Log in, Create an account, Reset your password |
Only same-site links that open in the same tab are taken over. Ctrl/Cmd-click, middle-click and Shift-click still open the link normally.
Custom triggers
Optional, comma-separated, e.g. .header-login, #account-button. Clicking a matching element opens the popup on the Open on view. Up to 500 characters.
Shortcode
The General tab's Shortcode card copies [siteryn_lrp_link]: a "Log in" link for guests and a "My account" link for logged-in customers.
| Attribute | Values | Default |
|---|---|---|
view | login, register (falls back to login when registration is off), lost-password | login |
text | Link text for guests | Log in / Create an account / Lost your password? |
logged_in | account (My account link), logout (Log out link) or hide | account |
logged_in_text | Link text for logged-in customers | My account / Log out |
class | Extra CSS classes | - |
[siteryn_lrp_link view="register" text="Join now" logged_in="logout"]
The link points at My Account (or the lost-password page), so it still works where the popup is not loaded.
Menu links and buttons
- Add a Custom Link menu item with the URL
#siteryn-lrp-login,#siteryn-lrp-registeror#siteryn-lrp-lost-password. - Add
data-siteryn-lrp-open="login"(orregister,lost-password) to any button or link. - Add
data-siteryn-lrp-redirect="/checkout/"to an opener to send the customer to that page after logging in or registering (same site only).