-
AuthorPosts
-
March 17, 2020 at 2:49 pm #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 youMarch 18, 2020 at 5:13 am #1193997Hey Mohamad,
Could you post a link to an example page so that we can have a closer look please?
Best regards,
RikardMarch 18, 2020 at 10:14 am #1194061Hello
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 !March 19, 2020 at 5:14 am #1194301Hi,
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,
RikardMarch 19, 2020 at 11:01 am #1194364Hello @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
March 23, 2020 at 8:45 am #1195385Hi,
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,
IsmaelMarch 23, 2020 at 12:00 pm #1195431@ismael
Thank you for your reply
I tried the code but it did not work ! the page is now loading foreverMarch 26, 2020 at 6:17 am #1197946Hi,
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,
IsmaelMarch 28, 2020 at 6:23 pm #1198652Hello Ismael ./. There is no error no !
March 30, 2020 at 4:07 am #1198991Hi,
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,
IsmaelMarch 30, 2020 at 6:24 pm #1199119Hello @ismael
Thank you for the reply .. i have redirected my page to a better custom page .. problem solved !thanks
March 30, 2020 at 7:21 pm #1199155Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Author Page’ is closed to new replies.