Tagged: Blog
-
AuthorPosts
-
June 1, 2017 at 12:25 am #802270
Good evening,
My client wants to display the author bio on the bottom of all the individual blog posts. Right now, it has name and date at top, but we want to add author bio on the bottom. Is that possible?
Site is http://trustytails.staging.wpengine.com/pet-learning-center/blog (hosted on WPengine)
Thanks!
June 1, 2017 at 5:44 am #802328Hey jgraddy,
Thank you for using Enfold.
You can edit single.php, find this code:
get_template_part( 'includes/loop', 'index' );
Add this below:
if(is_single()) get_template_part( 'includes/loop', 'about-author' );
Best regards,
John TorvikJune 1, 2017 at 1:55 pm #802543Thanks so much, awesome support as always!
Ok, I have another question about the blogs. If the advanced editor (Avia builder) is used to create the blog, it does not show author at the bottom nor does it show the date or author at the top. You can see what I mean on http://trustytails.staging.wpengine.com/dog-grooming/hoboken-dog-groomer/ (hosted on WPengine)If I don’t use the advanced editor (Avia builder), it shows all that stuff like on http://trustytails.staging.wpengine.com/hiring-a-pet-sitter/professional-pet-sitter/
Thoughts? Just asking because I know my client will ask. :)
June 1, 2017 at 7:25 pm #802732Hi jgraddy,
You have to add those things manually when you are making posts via Advanced Layout Builder.
If you need further assistance please let us know.
Best regards,
VictoriaMay 10, 2018 at 11:13 am #954459Hello Support,
I successfully added the authors bio at the end of the post with the snippet above. Works great.
The only thing that bothers me:
– On the authors page the text in the right side is aligned correctly: https://www.videospielgeschichten.de/author/yannic-hertel/
– On the blog post (bottom) it’s not. The texts floats around the avatar: https://www.videospielgeschichten.de/mea-culpa-kingdom-come-deliverance/
How can I correct this?
Kind regards
AndreMay 11, 2018 at 5:26 am #955006Hi Andre,
Please try the following in Quick CSS under Enfold->General Styling:
@media only screen and (min-width: 768px) { .single .author_description_text p { margin-left: 130px; } }
Best regards,
RikardMay 11, 2018 at 9:56 am #955131Thanks for your support Rikard, now it’s perfect!
I added a little extra space on the right side (50 Pixel), so that the text is not running against the border. Now both views (Author page und post) are equal and looking great.
https://www.videospielgeschichten.de/mea-culpa-kingdom-come-deliverance/
@media only screen and (min-width: 768px) { .single .author_description_text p { margin-left: 130px; margin-right: 50px; } }
Would it be possible to link the authors name to the authors page?
May 11, 2018 at 10:06 pm #955481Hi,
You would need to edit the element to make it link to the author page.
Unfortunately, there is not an easier way at all.Best regards,
BasilisMay 12, 2018 at 9:07 am #955627Hi Basilis,
You would need to edit the element to make it link to the author page.
How can I do this?
Kind regards
AndreMay 15, 2018 at 12:33 pm #956941Hi,
Replace the whole includes > loop-about-author.php file with this code.
// https://pastebin.com/FVjw0ZVZ
We just added this line inside the file.
$author_link = get_author_posts_url($post->post_author); $link = is_single() ? "<a href='{$author_link}' class='post-author-format-type'>{$heading}</a>" : $heading;
Best regards,
IsmaelMay 15, 2018 at 6:41 pm #957170Hi Ismael,
it’s working!
Thank you so much.
This should maybe be the standard in Enfold as many people would have a shortcut to the authors page.
AndreMay 18, 2018 at 4:34 am #958418 -
AuthorPosts
- You must be logged in to reply to this topic.