Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1293920

    Could we perhaps think about removing or altering this? It’s spelled incorrectly and looks kind of unprofessional on a lot of sites.

    #1294329

    Hey Joe,

    Thanks for contacting us!

    That is placeholder text when author has not written their bio and it is possible to replace it by adding following code to bottom of Functions.php file of your child theme – https://kriesi.at/documentation/enfold/child-theme/

    add_filter('avf_author_description_loop_about','new_avf_author_description_loop_about');
    function new_avf_author_description_loop_about(){
    	$author_id = get_the_author_meta( 'ID' );
    	$description = get_the_author_meta( 'description', $author_id );
    	$name = get_the_author_meta( 'display_name', $author_id );
    	if( empty( $description ) )
    	{
    		$description  = __( 'This author has yet to write their bio.', 'avia_framework' );
    		$description .= '<br />' . sprintf( __( '%s has contributed %s entries so far.', 'avia_framework' ), $name, count_user_posts( $author_id ) );
    
    		if( current_user_can( 'edit_users' ) || get_current_user_id() == $author_id )
    		{
    				$description .= "<br /><a href='" . admin_url( 'profile.php?user_id=' . $author_id ) . "'>" . __( 'Edit the profile description here.', 'avia_framework' ) . '</a>';
    		}
    	}
    	return $description;
    }

    Best regards,
    Yigit

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