- This topic has 2 replies, 2 voices, and was last updated 11 years, 10 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 › WP eMember Tweaks › Changing Hyperlink in "Protected Content" shortcode
Tagged: emember protected link, hyperlink, protected
With the short code [emember_protected scope=verified_users_only] I would like to change the hyperlink to the login page instead of the registration page. Thanks for any help in advance!
[http://systemicformulasmedia.com] is the site
I don’t suggest you do that change because you always want to send non members to the “Join us” page first. If need be you can have a link to your login page on your join us page. The reason is that… non-members doesn’t mean they already have an account. So you want to funnel the user through the “Join Us” page. A member who is not logged in will naturally look for a “Login link” somewhere on your site to log into the site.
Anyway, You can tweak the PHP code to customize that link so it goes to the login page.
Open the “emember_access_checkers.php” file from eMember and search for the following line of code:
$replacement = '<a '. $join_url .' ><b>'.EMEMBER_MEMBERS_ONLY_MESSAGE.'</b></a>';
Now, change that to something like the following to link to your login page:
$replacement = '<a href="your-site.com/link-to-login"><b>'.EMEMBER_MEMBERS_ONLY_MESSAGE.'</b></a>';
Thank you!