Archived topic
How to Change Author Profile Page?
5 replies · Started by Jeffrey on December 17, 2022
Hey, I am using "info" Generatepress theme.
Currently Author page has only the list of posts published by Author.
I want to add
- Profile Photo
- Description
- Social Links
- Experience (text based)
I mean, I want to make Author page something like this, is this achievable and if yes, how?
https://www.whattoexpect.com/authors/caroline-picard-1523
Hi there,
you can use a Block Element - Page hero:
https://docs.generatepress.com/article/block-element-page-hero/
I do this with the built in Wordpress biography by changing the Author slug using the “Edit Author Slug” plugin to mask the actual users Wordpress user name from the URL Wordpress displays in the browser. and then adding a function in Code Snippets to allow HTML in the Wordpress biography in their Wordpress account. Very light weight and would work across themes if they should change.
I wouldn’t just allow all HTML tags unless it’s a single author site but you can edit this snippet to allow which ever HTML tags (or not) you like.
function shapeSpace_allowed_html() {
$allowed_tags = array(
'a' => array(
'class' => array(),
'href' => array(),
'rel' => array(),
'title' => array(),
),
'abbr' => array(
'title' => array(),
),
'b' => array(),
'blockquote' => array(
'cite' => array(),
),
'cite' => array(
'title' => array(),
),
'code' => array(),
'del' => array(
'datetime' => array(),
'title' => array(),
),
'dd' => array(),
'div' => array(
'class' => array(),
'title' => array(),
'style' => array(),
),
'dl' => array(),
'dt' => array(),
'em' => array(),
'h1' => array(),
'h2' => array(),
'h3' => array(),
'h4' => array(),
'h5' => array(),
'h6' => array(),
'i' => array(),
'img' => array(
'alt' => array(),
'class' => array(),
'height' => array(),
'src' => array(),
'width' => array(),
),
'li' => array(
'class' => array(),
),
'ol' => array(
'class' => array(),
),
'p' => array(
'class' => array(),
),
'q' => array(
'cite' => array(),
'title' => array(),
),
'span' => array(
'class' => array(),
'title' => array(),
'style' => array(),
),
'strike' => array(),
'strong' => array(),
'ul' => array(
'class' => array(),
),
);
return $allowed_tags;
}
Thanks,
I did not get, how should I attach new Element to "Author Page"
Could you please give me direction?
In the Block Element there is a Display Rule called: Author Archives you can use that one.
Thank you David, I got it but I dont understand how should I remove the old one.

Above is the new element I created and below is the standard one, which I want to remove.