- This topic has 4 replies, 2 voices, and was last updated 12 years, 3 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 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 › eMember – Can you add html to various messages in the lang.php file?
Tagged: $login_url
I found out how to change the text for the various messages that show up in different situations, but I’d like to add HTML (specifically links) to them. Is there anyway to do this?
I tried to add HTML in the eng.php file, but I kept getting an error so I’m not sure if I have to add it somewhere else or what.
I know I ask way to many questions here, but I really am enjoying the plugin and I appreciate all the support and time you’ve put into answering my questions. Thanks!
You should be able to add HTML code in the language file however the code you add need to be correct so it doesn’t result in a syntax error. Post the full line of code that you modified/added.
define(“EMEMBER_PROFILE_MESSAGE”,”Please <X href=”http://www.site.com”>login</X> to edit your profile.”);
That’s basically what I’ve done, aside from replacing the X’s with a’s, but I get a syntax error. Do I have to do something else to make the HTML work?
You are using double quotes (“) inside another double quote which is the issue.
Try the following… see how there is a back slash character () before the double quotes that are inside? That’s the trick to using quotes inside quotes.
define("EMEMBER_PROFILE_MESSAGE","Please <X href="http://www.site.com">login</X> to edit your profile.");
Okay got it working now. Thanks!