• Ok, I found where the default header images were stored. Now, how does one go about replacing those images with ones own? I edited a couple of pix of the right sizes, uploaded them into the header images folder, but they didn’t show up in the catalog nor did they show in the rotation.

    Next, I renamed my images to one of the images in the folder and then it appeared, but under the original name, but not as I had named it.

    How do I add images into the theme header images folder and get them recognized by Twenty-eleven?

    Dick

Viewing 3 replies - 1 through 3 (of 3 total)
  • Do not edit the Twenty Eleven theme. It is the default WordPress 3.2 theme and having access to an unedited version of the theme is vital when dealing with a range of site issues.

    For this reason, it is recommended that you consider creating a child theme for your customisations. Once your child theme is active, we should be able to help with the customisation.

    Thread Starter dsmithnc

    (@dsmithnc)

    esmi, thanks for that information. I have created a child theme, but I don’t see it listed in the themes folder? It only has a minimal css file in it.

    Dick

    Here’s the code in Twenty Eleven’s functions.php file that registers the available header images:

    register_default_headers( array(
    	'wheel' => array(
    		'url' => '%s/images/headers/wheel.jpg',
    		'thumbnail_url' => '%s/images/headers/wheel-thumbnail.jpg',
    		/* translators: header image description */
    		'description' => __( 'Wheel', 'twentyeleven' )
    	),
    	/* ... */
    ) );

    So, to register your own headers, you’ll need to:

    1) Create a setup function in your Child Theme’s functions.php file (Twenty Eleven’s inline documentation explains how to do this)

    2) Inside this setup function, make your own call to register_default_headers(), using an array of your own, custom images.

    If you want to unregister Twenty Eleven’s header images, you’ll need to use unregister_default_headers() (Codex ref)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[twenty-eleve] Replace Default Images’ is closed to new replies.