header - wordpress ignores featured image -


i created wordpress theme based on classic twentyten theme. changed size of header images in functions.php apart didnt mess around custom header stuff. wordpress ignoring when assign featured images pages , instead displays background selected in header settings. size of image doesnt seem have problem. have tried using exact image size , larger images, ignored...

thanks if can help!

ps. here link website: http://stuck-mueller.de/beta/

here code functions.php:

// custom header business starts here.  $custom_header_support = array(     // default image use.     // %s placeholder theme template directory uri.     'default-image' => '%s/images/headers/path.jpg',     // height , width of our custom header.     'width' => apply_filters( 'twentyten_header_image_width', 960 ),     'height' => apply_filters( 'twentyten_header_image_height', 240 ),     // support flexible heights.     'flex-height' => true,     // don't support text inside header image.     'header-text' => false,     // callback styling header preview in admin.     'admin-head-callback' => 'twentyten_admin_header_style', );  add_theme_support( 'custom-header', $custom_header_support );  if ( ! function_exists( 'get_custom_header' ) ) {     // compatibility versions of wordpress prior 3.4.     define( 'header_textcolor', '' );     define( 'no_header_text', true );     define( 'header_image', $custom_header_support['default-image'] );     define( 'header_image_width', $custom_header_support['width'] );     define( 'header_image_height', $custom_header_support['height'] );     add_custom_image_header( '', $custom_header_support['admin-head-callback']   );     add_custom_background(); }  // we'll using post thumbnails custom header images on posts , pages. // want them 940 pixels wide 198 pixels tall. // larger images auto-cropped fit, smaller ones ignored. see header.php. set_post_thumbnail_size( $custom_header_support['width'], $custom_header_support['height'], true ); 

you don't need apply_filters() assign width , height integers like:

'width' => 960, 'height' => 240, 

check out codex here more info


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -