[Resolved] Getting author pic to appear in full width page header

Home Forums Support [Resolved] Getting author pic to appear in full width page header

Home Forums Support Getting author pic to appear in full width page header

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

    #408764
    Tom
    Lead Developer
    Lead Developer
    #408961
    gedosan

    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

    #409260
    Tom
    Lead Developer
    Lead Developer

    Give 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;
    }
    #409268
    gedosan

    Looks cool, cheers – how do i remove the date?

    #409273
    Leo
    Staff
    Customer Support

    Try removing this line in the code: <time datetime="<?php the_time('Y-m-d'); ?>"><?php the_time('d F Y'); ?></time>

    #409274
    gedosan

    thanks

    #409276
    Leo
    Staff
    Customer Support

    Glad we could help!

    #409277
    gedosan

    Ah, scroll down – my avatar appears at the top too.

    #409369
    Leo
    Staff
    Customer Support

    Sorry what’s the problem?

    #409375
    Leo
    Staff
    Customer Support

    Just saw the question in another topic, we will stick with this one.

    Try this:

    header.entry-header {
        display: none;
    }
    #409410
    gedosan

    But that removes it from all pages right. I need it to remain visible on normal posts.

    #409443
    Leo
    Staff
    Customer Support

    What do you mean by all pages right? So you only want to remove them on single posts?

    #409453
    gedosan

    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

    #409614
    Tom
    Lead Developer
    Lead Developer

    Where else was the avatar showing up? I’m not seeing anything now?

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