• Chaps, I didn’t want to reopen an old thread, so I thought I will open a new one instead. On this site, I am trying to locate and remove one of the banner pictures specifically this one http://www.andychristodrums.co.uk/wp-content/themes/twentyeleven-child/images/headers/andy_background_1.jpg

    I have managed to locate the picture and finally also the function that is handling it (inside the function.php). Now, I would be grateful if somebody can let me know if what I will do is correct. In the function.php

    'image1' => array(
    			'url' => $url  .'andy_background.jpg',
    			'thumbnail_url' => $url .'andy_background_thumb.jpg',
    			/* translators: header image description */
    			'description' => __( 'Image description', 'twentyeleven-child' )
    		),
    		'image2' => array(
    			'url' => $url .'andy_background_1.jpg',
    			'thumbnail_url' => $url .'andy_background_1_thumb.jpg',
    			/* translators: header image description */
    			'description' => __( 'Image description1', 'twentyeleven-child' )
    		),
    
    		'image4' => array(
    					'url' => $url .'andy_background_4.jpg',
    					'thumbnail_url' => $url .'andy_background_4_thumb.jpg',
    					/* translators: header image description */
    					'description' => __( 'Image description4', 'twentyeleven-child' )
    				),

    the offending picture is andy_background_1.jpg so I will remove this block of code:
    `’image1′ => array(
    ‘url’ => $url .’andy_background.jpg’,
    ‘thumbnail_url’ => $url .’andy_background_thumb.jpg’,
    /* translators: header image description */
    ‘description’ => __( ‘Image description’, ‘twentyeleven-child’ )
    ),`
    and then delete the image itself from the headers folder. Is that it?
    thanks

Viewing 1 replies (of 1 total)
  • That looks right to me. I’d try either commenting out the code or saving a backup of the functions.php, then deleting the code to test it. It looks like wherever the array of images is used, it doesn’t depend on consecutively numbered keys; otherwise, it would already be broken with “image3” missing.

    I’d give it a try to make sure it works, then delete the image itself from the headers folder. Make sure you clear any cached pages if you’re running a caching plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘locating picture in the banner’ is closed to new replies.