- This topic has 4 replies, 4 voices, and was last updated 11 years, 8 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Tweaks › eMember – Remove/hide membership level in login widget
Tagged: hide membership level, login widget, membership
Hi,
How can i hide the membership level in the login widget when a member is logged in?
Thanks, carl
It may be better to customize the label that says membership level and call it something generic rather than removing it. You can customize the text using this technique:
Anyway, you will have to modify some php code to achieve this.
In the file called eMember_auth_utils.php look for the following two lines of code in the function called “eMember_login_widget”:
<br />
$output .= '<br />' . EMEMBER_LOGGED_IN_LEVEL;<br />
$output .= '<label class="eMember_highlight">'.$auth->user_membership_level_name.'</label>';<br />
Then delete these two lines if you don’t want the level displayed.
Note: Hacking the plugin code is not recommended if you are not comfortable with php or other programming and any changes you make you do so at your own risk.
Perfect, this was exactly what i needed.
I edited the PHP code and works just fine, thank you!
Good morning. I followed the above instructions and deleted the lines, but the membership level stills appears on the form. Please help.
Thanks,
Paula
What version of the plugin are you using? Which file and what line of code did you modify? Post a link to the page where we can see this. You can create a test membership account and share the details so we can view the issue in our browser.