[Resolved] Author image/gravatar in Header Element

Home Forums Support [Resolved] Author image/gravatar in Header Element

Home Forums Support Author image/gravatar in Header Element

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #2058365
    Vish

    I want to show the author image in front of the author’s name inside the header element. How to do this?

    I did a quick search and almost all support replies point to this link: https://docs.generatepress.com/article/page-hero-examples/ which does not exist anymore.

    #2058382
    David
    Staff
    Customer Support

    Hi there,

    i would recommend using the Block Element – example doc for creating page heros with them:

    https://docs.generatepress.com/article/block-element-page-hero/

    And part of that includes the GP Dynamic Image Block which provides an option for the avatar:

    https://docs.generatepress.com/article/dynamic-blocks/#author-avatar

    #2058423
    Vish

    I use the Block element all the time but I found out that it does not have the ‘merge with site header’ option (See this: https://cln.sh/tW99xt). So, I can’t merge the post header (made with Block Element) that I am creating, with the site header. Which is a deal breaker for me. Or is it there and I am not looking in the right place?

    If the ‘merge with site header’ option is indeed not available in Block Element, could you please suggest a way to add author image in page hero?

    Thanks.

    #2058454
    David
    Staff
    Customer Support

    For now you would create a separate header element solely to enable the Merge with Site Header option. It will merge the header with whatever content appears first on the page ie. your Block Element.

    #2081473
    Arp

    David – when using a block as a site header, is it possible to put the primary nav above the header? I need the block as site header to display an author avatar. So what I’m trying to do is this:

    – secondary nav
    – primary nav (used as header)
    – site header
    – content

    Whatever settings permutations I’ve tried, the order ends up being:

    – secondary nav
    – site header
    – primary nav
    – content

    #2081475
    Leo
    Staff
    Customer Support

    Can you open a new topic for your question?

    Thanks ๐Ÿ™‚

    #2082315
    Arp

    I figured it out, I had my header elements using a custom hook to display below the secondary nav. I really need to take better notes!

    #2082340
    Leo
    Staff
    Customer Support

    Glad to hear ๐Ÿ™‚

    #2098489
    Vish

    Thanks David. That did the trick!

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