- This topic has 2 replies, 2 voices, and was last updated 11 years, 11 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 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 › How to create an html link that will make the fancy login pop up?
Tagged: fancy login, menu item, popup, site access
I would like to put a link in my menu that when clicked on will generate the fancy login popup so people can login. I don’t want to use the shortcode (because it is too long and won’t fit in my menu), and I don’t want to link to the login page. How do I do this?
Basically, I just need the raw code to create a link that says “login” and generates the fancy login popup.
Many thanks.
“I don’t want to use the shortcode (because it is too long and won’t fit in my menu)”
It would be easier to use the compact login shortcode and edit the way it outputs the compact login.
For instance currently the compact login will display as “Login to start. Not a member? Join Today!”
You can comment out the code which adds the extra wording above and leave only the “Login”.
To do that please see the eMember_auth_utils.php file and find the function called “eMember_compact_login_widget”.
Inside that function, comment out the following lines as follows:
//$output .= EMEMBER_NOT_A_MEMBER_TEXT;
//$join_url = $emember_config->getValue('eMember_payments_page');
//$output .= '<a href="'.$join_url.'">'.EMEMBER_JOIN .'</a>';
The above lines are found near the end of the function inside the “else” portion of the code.
I might use the shortcode somewhere else and don’t want to change that. Plus I am concerned about when I update the wp emember plugin, then my changes would be lost.
Can you give me the raw code? I just want to make a link that says login, then have the fancy login popup, and put that in my menu links.