• Resolved innkeeperea

    (@innkeeperea)


    I have created a child theme based on Twenty Ten. I have the style.css ok. but I want to change something in the function.php and put that in the child folder so it will not be overwritten if the theme is updated. I keep getting error messages when I put it in the folder and try to activate the theme. The only thing I want to change is the header size.
    What am I doing wrong? Do I have to put the “theme change” at the top like in the style sheet? I am not much into this code stuff.

    Thanks anyone for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • What are you trying to put into the child functions.php?

    It has to be valid, coded properly, and inside of php tags

    Thread Starter innkeeperea

    (@innkeeperea)

    Hi,

    I am just trying to keep the same functions.php only with this change in size for the header. Just want to make it 350 instead of the 198 in Twenty Ten function.

    // 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’, 350 ) );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Creating a CHILD Function.php’ is closed to new replies.