Archived topic
Adding a hyperlink in an Element
5 replies · Started by Randy on October 30, 2020
Hello! I'd like to replace the Author Link with a Hyperlink on my Post Header. It's currently controlled by Elements:
<h1>
{{post_title}}
</h1>
[modified_date] | {{post_author}}
End result I'm looking for is:
All blog posts showing a name I choose and that name will be the same on all posts and linking to the about page. It is working that way now with a 301 redirect from the author page to about. I'm wondering if I can accomplish the same without a redirect.
<h1>
{{post_title}}
</h1>
[modified_date] | {{post_author}}
This was suggested on the FB forum:
<span><a href="url for about page">Authorname><a/></span>
But ended up messing with my Footer Element, and turning entire posts into a giant hyperlink.
I also tried:
<a href="url for about page">Authorname><a/>
Still broke things.
Thanks!
Hi there,
Try replacing <a/> with </a>.
Let me know if this helps :)
Hi Leo, these look exactly the same to me:
"Try replacing <a/> with ."
The / is on the different side of a:
https://www.screencast.com/t/5uJUkVUMv
Thanks, Leo - it worked - I didn't use </span> - is it needed for some reason?
If it works without span then you can ignore it :)