WordPress Registration Form Plugin (CMREG) - How To - Display Log in, Log Off and Register Links in the Website
Log In / Log Off / Registration Links in the website
With WordPress Registration Form Plugin you can display log in, register and log off links in navigation by including simple menu items.
There are three ways to achieve this:
- Including links as navigation links (simple)
- Adding custom CSS (Advanced)
- Adding widgets to the website (check the specific guide)
1) Links as navigation links (Simple)
This method involves adding the log in, log out and register links as menu items.
Example
To do this, navigate to the Admin Dashboard → Appearance → Menus.
Then simply add links to the relevant pages: login form page, registration form page, and Profile.
In order to create a logout link, simply add a custom link with #cmreg-logout-click instead of a regular URL. This way, when the user clicks the link he/she will log out.
2) Adding custom CSS (Advanced)
This method grants the same results, but it's more flexible, although harder to achieve.
To do it, start by navigating to the Admin Dashboard → CM Registration Pro → Settings.
Click on the General tab.
Scroll down to the Appearance section.
Place css styles in the Custom CSS field for login/register links - find their IDs in the page source using Inspect browser tool. Click on the link with mouse right button and click Inspect. Find the line with link and copy its ID.
Find the element ID in the console.
Example CSS:
/* Make Sign-in and Register links hidden after login: */
.logged-in #menu-item-661, .logged-in #menu-item-660 {display: none;}
/* Make Account and Logout links hidden until login: */
#menu-item-671, #menu-item-672 {display: none;}
.logged-in #menu-item-671, .logged-in #menu-item-672 { display: inline-block !important; }
Below: When users are logged in, the "Login" and "Register" links change into "Profile" and "Logout".
When user are logged-in, the "Profile" and "Log Out" links are visible.
More information about the WordPress Registration Form Plugin Other WordPress products can be found at CreativeMinds WordPress Store |
|
Let us know how we can Improve this Product Documentation Page To open a Support Ticket visit our support center |