[Support request] Change the author link of an article

Home Forums Support [Support request] Change the author link of an article

Home Forums Support Change the author link of an article

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1645277
    Jeremy

    Hi Support,
    How can I change de destination link of the author on a post?
    I’d like to link to the about page instead of the author archives page.
    Thanks

    #1645324
    Elvin
    Staff
    Customer Support

    Hi there,

    To clarify: Do you want ALL of the author links to go to the about page regardless of who it is?

    If so, try this PHP snippet:

    add_filter( 'author_link', 'my_author_link' );
      
    function my_author_link() {
        return home_url( '/path-to-your-about-page' );
    }

    You can change the link within home_url( '/path-to-your-about-page' ); to the path pointing to your about page. Examples: /about, /about-us

    #1645328
    Jeremy

    Thanks Elvin,
    Where can I add this code?

    #1645342
    Elvin
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.