Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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,
    Danny

    #1255830

    Hey 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,
    Victoria

    #1256295

    Hi,

    Thanks for the reply, what about point A?
    Thanks,
    Danny

    #1256489

    Hi 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.
    #1259498

    Hi 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,
    Danny

    #1260888

    Hi,

    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,
    Ismael

    #1260912

    Hi,

    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,
    Danny

    #1261822

    Hi,

    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,
    Ismael

    #1264473
    This reply has been marked as private.
    #1264941

    Hi,

    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

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