Tips and Tricks HQ Support Portal › Forums › WP eMember › eMember – Only paid memberships?
Tagged: custom message, Language, paid membership, Translation
- This topic has 7 replies, 3 voices, and was last updated 7 years, 8 months ago by
admin.
-
AuthorPosts
-
December 2, 2016 at 9:16 am #13857
johannak60
MemberHi,
I’m building a site with several courses. I do not currently have any free content, so for now I’m looking for a way to simplify the process for the visitor by getting rid of the registration option (they would only register upon buying a product from the site). This means that the compact_login should only display the text “Log in” and not the “Join us” or “Register” messages. Is there a way to do this?
Thanks in advance,
Johanna
December 2, 2016 at 3:16 pm #74717wzp
ModeratorSee the following post if you want to hide the “Join Us” link:
https://support.tipsandtricks-hq.com/forums/topic/remove-join-us-link-from-emember-widget
You could create your own HTML button or link that goes directly to the login page (no need to use the compact login shortcode).
You could customize the compact login shortcodes output by applying some tweaks:
December 11, 2016 at 1:33 pm #74718johannak60
MemberThank you very much, the CSS tweak did the trick!
Now I have another question: my site is built on the Enfold template, each course is published as a page compiled of various content blocks and I have selected the whole page to be protected to avoid having to protect every single text block element on the page individually. Now anyone with no permission to the content enters the page will see the standard protection message, which I would like to replace with something else. Is there a way to display a custom message also on pages protected by selecting the “Yes, Protect this content.” switch?
Thanks again,
– Johanna
December 11, 2016 at 5:51 pm #74719wzp
ModeratorFollowing these instructions, you may customize any of the messages that appear:
December 14, 2016 at 1:10 pm #74720johannak60
MemberHi, thanks!
I have translated the plugin and that works fine. My problem is that the custom message is compiled of several strings. I would like to remove the “EMEMBER_NON_MEMBER” and “EMEMBER_JOIN” strings from the default message but when I tried to just empty those in the language file I got an error message saying that these cannot be empty. Is there a way to overcome this?
Thanks again,
– Johanna
December 14, 2016 at 1:19 pm #74721wzp
ModeratorHave you tried using a space character, or some other non-printable character?
December 15, 2016 at 8:34 am #74722johannak60
MemberHi, thanks – what a simple solution! It works, except that now it displays an empty pair of brackets () instead of the text. Can I get rid of those?
All the best,
Johanna
December 16, 2016 at 12:05 am #74723admin
KeymasterThere is no easy way to apply the customization you are after.
Use the following option and I will try to come up with a custom solution for you:
-
AuthorPosts
- You must be logged in to reply to this topic.