Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1193809

    Hello

    How can i edit the author page / i just want to have the author page display the posts profile images and not only the title !
    Thank you

    #1193997

    Hey Mohamad,

    Could you post a link to an example page so that we can have a closer look please?

    Best regards,
    Rikard

    #1194061

    Hello
    My sits is not yet published .. i just want to have the blog posts show their profile photo and not only the title .,. is that possible ? if not .. its ok !

    #1194301

    Hi,

    You can try to copy author.php to your child theme, then add this:

    	$email        = apply_filters('avf_author_email', get_the_author_meta('email', $author_id), $author_id);
    	$gravatar_alt = esc_html($name);
    	$gravatar     = get_avatar($email, '81', '', $gravatar_alt);

    Below this line:

    $heading_s    = __("Entries by",'avia_framework') ." ".$name;

    Then add this:

    echo "<span class='post-author-format-type blog-meta'><span class='rounded-container'>{$gravatar}</span></span>";

    Before or after the heading:

    echo "<h4 class='extra-mini-title widgettitle'>{$heading_s}</h4>";
    

    If you want to remove the heading then simply delete that line.

    Best regards,
    Rikard

    #1194364

    Hello @rikard

    it added my own avatar // i do not want this !

    i want the post MAIN BANNER (Featured Image) to be displayed on top of the post title

    #1195385

    Hi,

    Thank you for the clarification.

    Edit the includes > loop-author.php file and look for this code around line 134:

     //echo the post title
                        echo $title;
                        

    Above, add this code to render the featured image on top of the post title.

    				$link = ! empty( $url ) ? $url : get_permalink();
    					$featured_image = apply_filters( 'avf_post_featured_image_link', get_the_post_thumbnail( $the_id, 'entry_with_sidebar' ) );
    					$featured_img_title = trim( the_title_attribute( 'echo=0' ) );
    					$blog_style = ! empty( $avia_config['blog_style'] ) ? $avia_config['blog_style'] : avia_get_option( 'blog_style', 'multi-big' );
    
    					if( $featured_image ) 
    					{
    						$featured_image = '<a href="' . $link . '" ' . $featured_img_title . '>' . $featured_image . '</a>';
    					}
    
                        if( $featured_image ) 
    					{
    						echo '
    <div class="big-preview ' . $blog_style . '">' . $featured_image . '</div>
    ';
    					}

    Best regards,
    Ismael

    #1195431

    @ismael
    Thank you for your reply
    I tried the code but it did not work ! the page is now loading forever

    #1197946

    Hi,

    Do you see any errors after adding the code? It should cause an error at least if the code is invalid and prevent the page from loading. Can we access the file server?

    Best regards,
    Ismael

    #1198652

    Hello Ismael ./. There is no error no !

    #1198991

    Hi,

    Thank you for the update.

    Can we access the file server? We would like to test the modification on our end. Please post the WP and FTP details in the private field.

    Best regards,
    Ismael

    #1199119

    Hello @ismael
    Thank you for the reply .. i have redirected my page to a better custom page .. problem solved !

    thanks

    #1199155

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Author Page’ is closed to new replies.