Hi, I feel kind of silly that I haven’t been able to figure this out, so I apologize, but I am having trouble linking text to my home page. My site is not online yet, so I can’t just copy the link to my website, because right now it’s only localhost:#. What I am trying to do is very simple: I have a < p > tag in one of my pages and I want it to always send the user back to the home page. Please tell me what I am missing. I looked through the Docs and I couldn’t get anything to work. Thanks in advance!
You can use the url()
helper to link to the home page:
<p><a href="<?= url() ?>">Link to homepage</a></p>
1 Like
Thank you so much!! That definitely worked