[Resolved] Adding a hyperlink in an Element

Home Forums Support Adding a hyperlink in an Element

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1511524
    Randy

    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!

    #1511528
    Leo
    Staff
    Customer Support

    Hi there,

    Try replacing <a/> with </a>.

    Let me know if this helps πŸ™‚

    #1511530
    Randy

    Hi Leo, these look exactly the same to me:

    “Try replacing <a/> with .”

    #1511535
    Leo
    Staff
    Customer Support
    #1511590
    Randy

    Thanks, Leo – it worked – I didn’t use </span> – is it needed for some reason?

    #1511636
    Leo
    Staff
    Customer Support

    If it works without span then you can ignore it πŸ™‚

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.