Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › How to add user profile link to compact login?
- This topic has 6 replies, 2 voices, and was last updated 11 years ago by bradelectro.
May 13, 2012 at 10:14 pm #6313
I’m using the compact login message PHP function reference in my header.php. Two questions:
1. How do I decrease the space between “Login” and “Join Us?” Screen capture here: http://screencast.com/t/ctt8Ca79g4oS
2. How do I add a “User Profile” hyperlink after login like with the standard login form? I want users to be able to quickly access their profile.May 14, 2012 at 3:35 am #45035adminKeymaster
The compact login shortcode will show exactly what is documented here:
If you want to customize it, you can tweak the code to suit your needs. Look for the “eMember_compact_login_widget” function in the “eMember_auth_utils.php” file of eMember plugin then change whatever you like there.
The extra space you are seeing is most likely a CSS issue coming from your theme. If you post a link to your site I will be able to inspect the CSS code and offer some help.May 15, 2012 at 3:53 pm #45036
Thanks for your reply. I found function the eMember_compact_login_widget section in eMember_auth_utils.php yesterday, but not being a PHP master, I don’t know exactly what to add in order to make an “edit profile” link appear.
Currently my site (http://tinyurl.com/7uag2h8) only displays “Login” and “Join Us.” Can you please tell me what to add to the code below in order to also have “Edit Profile?”
As for the CSS, I think the styles are set by the eMember CSS files, not my theme. In any case I couldn’t find unique divs for each link in order to easily adjust the padding, etc. Thanks for the offer to inspect the markup, please just let me know what to add to whichever stylesheet.May 16, 2012 at 2:15 am #45037adminKeymaster
We added a new custom compact login widget function that should work better for your situation I think.
Please get a new build of the plugin from here:
After you update the plugin, create a test page and use the following shortcode on this page to see if you like it:
It shows the following 3 details by default (I think this is what you wanted):
– Member’s Name
– A link to the edit profile page
– A logout link
More details on this custom compact login widget here:
https://support.tipsandtricks-hq.com/forums/topic/wp-emember-creating-or-customizing-the-compact-login-widgetlinksMay 16, 2012 at 2:16 pm #45038
Wow! I’ll try it out today. Thanks for the awesome support.May 16, 2012 at 3:08 pm #45039
Boom! There it is. Fantastic, thank you so much.May 17, 2012 at 11:03 pm #45040
…Just figured out that my CSS problem wasn’t spacing, it was the text-color. The words in bold in the following text were transparent: Login to start. Not a member? Join Today!
- You must be logged in to reply to this topic.