- This topic has 21 replies, 3 voices, and was last updated 8 years, 5 months ago by
Tom.
-
AuthorPosts
-
October 23, 2017 at 8:11 am #408535
gedosan
Hey guys,
So I got my author pics alongside the author names on standard blog posts (using your snippet shared in another thread) and it looks awesome. I’d like the author bio pic to appear on full width page headers too where I add the shortcode {{post_author}}.
Possible?
Included link to the post in question in website URL box.
Thanks
October 23, 2017 at 6:03 pm #408764Tom
Lead DeveloperLead DeveloperHi there,
This post might help: https://generatepress.com/forums/topic/filter-generate_post_author_output-not-apply-to-page-header-add-on/#post-363312
Let me know 🙂
October 24, 2017 at 2:51 am #408961gedosan
hey Tom, so I got that working:
Can you hit me up with some CSS to center the avatar with name to the right (on one line) – don’t need the date.
My domain.com and followed by this:
/?p=10538&preview=1&_ppp=610254a238
Thanks
October 24, 2017 at 9:19 am #409260Tom
Lead DeveloperLead DeveloperGive this a shot:
.foto-autor, .autor-post { display: inline-block; } .foto-autor img.avatar.photo { float: none; top: auto; width: 50px; bottom: -15px; margin-left: 10px; }October 24, 2017 at 9:28 am #409268gedosan
Looks cool, cheers – how do i remove the date?
October 24, 2017 at 9:31 am #409273Leo
StaffCustomer SupportTry removing this line in the code:
<time datetime="<?php the_time('Y-m-d'); ?>"><?php the_time('d F Y'); ?></time>October 24, 2017 at 9:31 am #409274gedosan
thanks
October 24, 2017 at 9:32 am #409276Leo
StaffCustomer SupportGlad we could help!
October 24, 2017 at 9:36 am #409277gedosan
Ah, scroll down – my avatar appears at the top too.
October 24, 2017 at 12:03 pm #409369Leo
StaffCustomer SupportSorry what’s the problem?
October 24, 2017 at 12:10 pm #409375Leo
StaffCustomer SupportJust saw the question in another topic, we will stick with this one.
Try this:
header.entry-header { display: none; }October 24, 2017 at 1:15 pm #409410gedosan
But that removes it from all pages right. I need it to remain visible on normal posts.
October 24, 2017 at 2:07 pm #409443Leo
StaffCustomer SupportWhat do you mean by all pages right? So you only want to remove them on single posts?
October 24, 2017 at 2:52 pm #409453gedosan
So pages with page headers I want them removed (because the author pic appears in the page header) and for all other posts I want it to remain.
G
October 24, 2017 at 10:57 pm #409614Tom
Lead DeveloperLead DeveloperWhere else was the avatar showing up? I’m not seeing anything now?
-
AuthorPosts
- You must be logged in to reply to this topic.