• Resolved carm8568

    (@carm8568)


    I recently used the codex directions to resize the header in Twenty Eleven. The header image resized to 980 x 120 just fine but now the blog title and description text cannot be hidden.

    The website is https://www.carmenamato.net.

    Here is all the current header code from the functions.php file

    Thanks in advance!

    $custom_header_support = array(
    		// The default header text color.
    		'default-text-color' => '000',
    		// The height and width of our custom header.
    		'width' => apply_filters( 'twentyeleven_header_image_width', 1000 ),
    		'height' => apply_filters( 'twentyeleven_header_image_height', 288 ),
    		// Support flexible heights.
    		'flex-height' => true,
    		// Random image rotation by default.
    		'random-default' => true,
    		// Callback for styling the header.
    		'wp-head-callback' => 'twentyeleven_header_style',
    		// Callback for styling the header preview in the admin.
    		'admin-head-callback' => 'twentyeleven_admin_header_style',
    		// Callback used to display the header preview in the admin.
    		'admin-preview-callback' => 'twentyeleven_admin_header_image',
    	);
    
    	$args = array(
    	'width'         => 980,
    	'height'        => 120,
    	'default-image' => get_template_directory_uri() . '/images/header.jpg',
    	);
    	add_theme_support( 'custom-header', $args );
    
    	if ( ! function_exists( 'get_custom_header' ) ) {
    		// This is all for compatibility with versions of WordPress prior to 3.4.
    		define( 'HEADER_TEXTCOLOR', $custom_header_support['default-text-color'] );
    		define( 'HEADER_IMAGE', '' );
    		define( 'HEADER_IMAGE_WIDTH', $custom_header_support['width'] );
    		define( 'HEADER_IMAGE_HEIGHT', $custom_header_support['height'] );
    		add_custom_image_header( $custom_header_support['wp-head-callback'], $custom_header_support['admin-head-callback'], $custom_header_support['admin-preview-callback'] );
    		add_custom_background();
    	}
Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter carm8568

    (@carm8568)

    Just FYI–the child theme does not display the sidebar, thumbnail images for the recent custom posts widget, and does not solve the problem that the image and description are dropped when I try to post a blog to Facebook–which is why I changed to the Twenty Eleven theme in the first place. So unfortunately I am less than where I was when I started.

    Have you selected a sidebar theme on your pages and added the correct widgets

    Thread Starter carm8568

    (@carm8568)

    I managed to correct the problems. Thanks so much for everyone’s help.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Unable to hide title in Twenty Eleven header’ is closed to new replies.