• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 How to add a hyperlink in phrase?

abdfahim

Active member
#2
Actually, hyperlink works in some phrases like "your_account_is_currently_awaiting_confirmation_confirmation_sent_to_x", but not in some other phrases like "search_could_not_be_completed_because_search_keywords_were_too". Is it as designed?
 

abdfahim

Active member
#4
Can anyone please give a hint how can I put a hyperlink in the phrase search_could_not_be_completed_because_search_keywords_were_too?

I think a template update is required, but I am not sure what changes I should make.
 

abdfahim

Active member
#6
That I know I can do, but I have to hard code the phrase in that case, right? For example, I have a phrase

my_phrase = If you want this, <a href="www.example.com">click here</a>.
In some XF templates, if I use that phrase, it takes it literally without html parsing
Code:
{xen:phrase my_phrase}
OUTPUT said:
If you want this, <a href="www.example.com">click here</a>.

Now, to use regular html, I have to hard code the phrase like because doing that won't serve my purpose, right?
Code:
<a href="www.example.com">{xen:phrase my_phrase}</a>.
 
Last edited: