TwentyTen Child Theme – Functions.php
-
Ive created a TwentyTen Child Theme. I want to change the URL of the header image and also change the height and width of the image.
What do i have to put in functions.php to change these settings so it overrides the settings in the default TwentyTen theme?
Below is the functions.php which ive copied to the twentyten-child folder. It’s not working correctly. It just displays the text at the top of the site above the header.
function twentyten_setup() { // Your changeable header business starts here define( 'HEADER_TEXTCOLOR', '' ); // No CSS, just IMG call. The %s is a placeholder for the theme template directory URI. define( 'HEADER_IMAGE', '%s/images/header.png' ); // The height and width of your custom header. You can hook into the theme's own filters to change these values. // Add a filter to twentyten_header_image_width and twentyten_header_image_height to change these values. define( 'HEADER_IMAGE_WIDTH', apply_filters( 'twentyten_header_image_width', 940 ) ); define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'twentyten_header_image_height', 198 ) ); } endif;
Viewing 15 replies - 1 through 15 (of 15 total)
Viewing 15 replies - 1 through 15 (of 15 total)
The topic ‘TwentyTen Child Theme – Functions.php’ is closed to new replies.