WordPress.org

Support

Support » How-To and Troubleshooting » Disable Featured image header in Twenty Eleven?

Disable Featured image header in Twenty Eleven?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Create a child theme for Twenty Eleven and take out the code that selects the featured image in the header.php and just manually put the code for the image you always want there. Then, when you select a featured image for a post, the header won’t change but you can still use the featured image in other areas of your website.

    Edit: Check this out.

    Michael
    Forum Moderator

    @alchymyth

    can’t seem to get any of the suggested fixes to work

    what exact code have you tried?
    what was the result?
    any error messages or warnings?

    Hi guys,

    I do have a child theme, however I’m VERY new to php so modifying the header file is rather confusing.
    As to which codes I’ve tried – I tried BlueJPro’s code however my line 92 doesn’t look like //echo get_the_post_thumbnail( $post->ID, ‘post-thumbnail’ ); it just says <?php
    Alchymyth’s suggested code didn’t work either.
    I’m confused by Erikoliv’s suggestion as my php seems to be several lines longer than his – mine starts at line 78?
    I’m wondering if the problem I’m having is my php makes reference to ‘// Compatibility with versions of WordPress prior to 3.4.’ Perhaps the fixes I tried don’t work with the version I’m using which is 3.4.2

    Also, I don’t get any error messages – the featured image just remains as the header which is not what I want.

    Michael
    Forum Moderator

    @alchymyth

    can you post the full code of header.php (including with any edits) ?

    please use the http://pastebin.com/ – see http://codex.wordpress.org/Forum_Welcome#Posting_Code

    Hi Alchymyth

    Here it is: http://pastebin.com/mwB2UZ6z

    Michael
    Forum Moderator

    @alchymyth

    Thank you SO much Alchymyth – that seems to have worked 🙂

    Your assistance is very much appreciated 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Disable Featured image header in Twenty Eleven?’ is closed to new replies.