Twenty Ten : How to edit child functions.php file to mod header image size
-
Hi,
I would like to change the header image height from the original to 300px. I know this is located in the functions.php file. I’m trying to create a child functions.php file and I followed the instructions in here and this is how my child functions.php look like :<?php add_filter('twentyten_header_image_height','my_header_height'); add_filter('twentyten_header_image_width','my_header_width'); function my_header_height($size){ return 300; } function my_header_width($size){ return 940; } endif;
However when this child functions.php file is in the twentyten-child folder along with the child style.css file, I get this error when I try to activate the child theme :
The website cannot display the page
HTTP 500
Most likely causes:
The website is under maintenance.
The website has a programming error.When I remove the functions.php from the twentyten-child folder, all is ok. What is wrong with my child functions.php code? What am i missing?
Thanks in advance.
- The topic ‘Twenty Ten : How to edit child functions.php file to mod header image size’ is closed to new replies.