How to Show Popup Login Link
By default, the popup login link will automatically display in the primary menu. But, if you want to display it somewhere else or if you're using a custom header, there are two other ways. Please follow the steps below:
1. With the Shortcode
- Open the Popup Login section of the customizer.
- See the Position option, choose Manual
- Use this shortcode
[oceanwp_popup_login]
and place it anywhere you want.
1.1 Attributes you can use with Shortcode
- login_text: To add custom login text. Default is "Sign In / Join";
- logout_text: Too add custom logout text. Default is "Logout".
Example:
[oceanwp_popup_login login_text="Join Us" logout_text="Disconnect"]
2. With the Class
This second way is if you want to exactly control your login/register link:
- Open the Popup Login section of the customizer.
- See the Position option, choose Manual
- Use this class opl-link in your link and #opl-login-form as href.
Example:
<a href="#opl-login-form" class="opl-link">Login/Register</a>