[Resolved] Page Header Addon Removes Featured Image On Single Post Page

Home Forums Support Page Header Addon Removes Featured Image On Single Post Page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #108164
    Hftt

    On some posts, I’d like to add extra content on the top using page header addon.

    After adding content in page header addon for desired post, the featured image above post title doesn’t appear anymore. The featured images from other posts are OK.

    But when I deactivate page header addon, I can see the featured image.

    Am I doing something wrong?

    #108220
    Tom
    Lead Developer
    Lead Developer

    When you add content into the Page Header add-on, it will replace the featured image with your added content.

    If you want content and your featured image in the page header, you can do something like this: http://generatepress.com/forums/topic/page-header-add-on-text-next-to-image/#post-108104

    Let me know if you need more info 🙂

    #108261
    Hftt

    Can I disable featured image being replaced by page header addon content?

    I need to use page header addon on some posts, and at the same time, I’d like to maintain original featured images.

    #108303
    Tom
    Lead Developer
    Lead Developer

    If no page header content is set, it will show the featured image.

    The featured image will only be replaced when there’s some sort of content set in the page header metabox.

    The Page Header metabox is basically a more advanced featured image field, which is why it overwrites the featured image functionality. Making it so they both worked hand in hand would require a decent re-write of the code, and would probably make a lot of people mad at me when they updated 😉

    Are you wanting to display both the featured image and the page header content at the same time? What would you want it to look like?

    #108357
    Hftt

    Thanks for reply T.

    For example –

    Here’s the single post with featured image (no page header content) –
    http://prntscr.com/75yw2t

    When I add page header content on that post, the featured image is being replaced. 🙁
    http://prntscr.com/75ywgd

    And YES, I really want to display page header content + featured image at the same time.

    But other GP users would be mad at you because of this page structure, forget about it. Absolutely fine. 🙂

    #108427
    Tom
    Lead Developer
    Lead Developer

    How about adding that image to the actual post content, and floating it left at the top?

    If your blog is showing excerpts, the content image won’t show.

    Then on the single post, your page header will show, and your content image will as well.

    Let me know 🙂

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