Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

How to redirect author page to a custom page?

  • #9695
    Avatar photo[anonymous]

    I want to redirect the author page to a custom page on my website. I am using the Persona free theme, and my site is hosted on Netlify. I have already tried the “_redirects” method, but it didn’t work. Can anyone suggest another way to accomplish this?

    #9697
    Avatar photo[anonymous]

    I use this trick: in the website field I put a post ID number. It’s not elegant but it works.
    You need to edit the content of author.hbs
    Between header and footer I put this:

    {{#if website}} {{#getPosts website "" ""}} {{{text}}} {{/getPosts}} {{else}} {{{description}}} {{/if}}

    This shows the Post ID content instead of the author description.

    #9700
    Avatar photo[anonymous]

    Could you share how you formatted your _redirect file? I made one for my Netlify hosted site recently, so I might be able to help.

    #9843
    Avatar photo[anonymous]

    “You need to edit the content of author.hbs” I can’t find this 😐

    #9846
    Avatar photo[anonymous]

    In Publii: Click on the three vertical dots to the right of Publii, and select “App settings”. Scroll to “Files location” > “Sites location” and copy the folder path.

    Open that folder in your file explorer, go to the folder named after your site, and head to “input” > “themes” > [theme name]. author.hbs should be there.

    You may want to create a theme override.