December 2, 2016 at 9:16 am #13857
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,
JohannaDecember 2, 2016 at 3:16 pm #74717
See the following post if you want to hide the “Join Us” link:
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 #74718
Thank 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?
– JohannaDecember 11, 2016 at 5:51 pm #74719
Following these instructions, you may customize any of the messages that appear:December 14, 2016 at 1:10 pm #74720
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?
– JohannaDecember 14, 2016 at 1:19 pm #74721
Have you tried using a space character, or some other non-printable character?December 15, 2016 at 8:34 am #74722
Hi, 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,
JohannaDecember 16, 2016 at 12:05 am #74723adminKeymaster
There 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:
- You must be logged in to reply to this topic.