Featured image in Post / Page as header image for post / Page.

  • deborah

    #1982

    Hello, I am trying to get the Featured Image to be used as the Header Image. I am using Nextgen gallery, and in other themes, this works. Is the some code like in this post:http://wordpress.org/support/topic/theme-twenty-eleven-make-featured-image-header-a-background?replies=2

    That I can put in header.php to make this feature work? Thanks.

    kriskringle

    #18097

    Here is what I am trying to do, as listed in your description: * (WordPress 3.0) Supports post thumbnails. You can now upload and set a featured image for any posts or pages, and the featured image will replace the header image when that post/page is viewed.”

    How do I enable this???

    Mod

    Kenneth John Odle

    #18098

    According to this Codex forum post, the featured image has to be the same width as the header image, which in the case of Graphene, is 960px. How wide is your featured image?

    Mod

    Kenneth John Odle

    #18099

    Also, in Graphene Options >> Display >> Header Display Options, make sure you have the “Disable Featured Image replacing header image” option unticked.

    If you take care of this and the width issue, it works. See this post: http://test.kjodle.net/blog/2011/10/09/another-test-post/

    Ken

    kriskringle

    #18100

    Thanks for the update. As I understood it, “Any featured image that has a size of greater than or equal to the theme’s header image size (960 x 198 pixels) will replace the header image when the post/page that featured image is assigned to is being displayed. It enables you to have different header image for different posts and/or pages.”

    I select full size, but now looking at the images, they are smaller than 960px. I see that they range from 350 to 600 px wide. Is there a workaround, or do I need to edit them in order for them to be used as the program expects….

    Mod

    Kenneth John Odle

    #18101

    No workaround that I’m aware of…the image has to be big enough to replace the header image.

    kriskringle

    #18102

    I just resized them to 980px, I will try again to see if that worked…Thanks.

    kriskringle

    #18103

    Even though I increased the size to 980x, it does not see to be working. Is there something I am missing? Perhaps I messes something up in header.php when I was trying to get it to work?

    Could you send me the section of header.php where this property is defined? Otherwise, I quess I can download it, and C&P the section myself. Thanks.

    Mod

    Kenneth John Odle

    #18104

    I would just download a fresh copy from here and upload it.

    Rife

    #18105

    It works for me, thank you.

Viewing 10 posts - 1 through 10 (of 10 total)

  • You must be logged in to reply to this topic.