-
AuthorPosts
-
October 22, 2020 at 7:25 am #1254870
Hi,
Is there a way in Enfold when creating a post to:
a, add a clickable contents like on https://surferseo.com/blog/the-new-algorithm-for-content-analysis/
b, if you see the link above, is there a way to add the picture of the author and their name but not make it clickable so it shows all of their posts?Thanks,
DannyOctober 26, 2020 at 8:57 pm #1255830Hey dannyl82,
This can be added with a plugin.
Here is an article for you:
https://www.wpbeginner.com/wp-tutorials/how-to-add-an-author-info-box-in-wordpress-posts/Best regards,
VictoriaOctober 28, 2020 at 9:21 am #1256295Hi,
Thanks for the reply, what about point A?
Thanks,
DannyOctober 28, 2020 at 8:53 pm #1256489Hi Danny,
Oh.. I missed that part.
That is some kind of table of contents added with a plugin.
Here is an article for you:
https://blog.hubspot.com/website/best-table-of-content-wordpress-plugins
Best regards,
Victoria- This reply was modified 4 years, 1 month ago by Victoria.
November 10, 2020 at 8:23 am #1259498Hi Victoria,
Thanks for the help. Can I just check something regarding showing the Avatar. The author has a gravata set in their profile and in the Enfold settings under the single post style we have the multi author (displays gravatar of the article author) set but in the post at the top it still just says by %author name% (no picture) – should the avatar not be showing there?
Thanks,
DannyNovember 17, 2020 at 5:24 am #1260888Hi,
Thank you for the update.
The image or gravatar of the author is displaying properly in the author box, right below the post content and comment form. Is this fixed? If not, please provide a screenshot of the issue using imgur or dropbox so that we could better understand the issue.
Best regards,
IsmaelNovember 17, 2020 at 7:43 am #1260912Hi,
No that at the bottom is being done via a plugin, we would like the show the author’s picture at the top next to where it says their name currently like it does on here for example https://regarding365.com/managing-your-availability-in-microsoft-teams-modern-workplace-scenarios-9a54940bbe5e
Thanks,
DannyNovember 20, 2020 at 4:40 pm #1261822Hi,
Thank you for the clarification.
The gravatar or the author image should display if the blog style is set to multi-author. Please post the login details in the private field so that we could check the theme and site settings.
Best regards,
IsmaelDecember 2, 2020 at 12:21 pm #1264473This reply has been marked as private.December 4, 2020 at 5:21 am #1264941Hi,
Thank you for coming back.
1.) We have to modify the includes > loop-index.php file and add the author image beside the name manually. Please edit the file and look for this code around line 409.
echo '<span class="blog-author minor-meta">' . __( 'by','avia_framework' ) . ' '; echo '<span class="entry-author-link" ' . avia_markup_helper( array( 'context' => 'author_name', 'echo' => false ) ) . '>'; echo '<span class="author"><span class="fn">'; the_author_posts_link(); echo '</span></span>'; echo '</span>'; echo '</span>';
Below that code, add the following snippet to render the author image.
$gravatar = ''; $pf_link = get_post_format_link( $post_format ); if( $post_format == 'standard' ) { $author_name = apply_filters( 'avf_author_name', get_the_author_meta( 'display_name', $post->post_author ), $post->post_author ); $author_email = apply_filters( 'avf_author_email', get_the_author_meta('email', $post->post_author), $post->post_author ); $gravatar_alt = esc_html( $author_name ); $gravatar = get_avatar( $author_email, '81', 'blank', $gravatar_alt ); $pf_link = get_author_posts_url( $post->post_author ); } $author_image= "<a href='{$pf_link}' class='post-author-format-type'><span class='rounded-container'>" . $gravatar . $icon . '</span></a>'; echo $author_image;
If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.
Thanks!
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.