Site logo

[Support request] How to Change Author Profile Page?

Home Forums Support [Support request] How to Change Author Profile Page?

Home Forums Support How to Change Author Profile Page?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2464927
    Jeffrey

    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

    #2465252
    David
    Staff
    Customer Support

    Hi there,

    you can use a Block Element – Page hero:

    https://docs.generatepress.com/article/block-element-page-hero/

    #2465617
    Scott

    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;
    }
    
    #2469103
    Jeffrey

    Thanks,

    I did not get, how should I attach new Element to “Author Page”

    Could you please give me direction?

    #2469243
    David
    Staff
    Customer Support

    In the Block Element there is a Display Rule called: Author Archives you can use that one.

    #2469324
    Jeffrey

    Thank you David, I got it but I dont understand how should I remove the old one.
    screenshot
    Above is the new element I created and below is the standard one, which I want to remove.

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