Twenty Eleven Header Size T_FUNCTION error HELP!
-
I created a child theme of Twenty Eleven, and I followed all sorts of direction for changing the size of the header image at the top of the page. I finally came up with something that worked, and it actually worked for about 10 days, but my site went blank and I got the following message in the site’s error log:
[23-Mar-2015 14:32:05] PHP Parse error: syntax error, unexpected T_FUNCTION in /home4/sallymin/public_html/447auction/wp-content/themes/447auctiontheme/functions.php on line 28
I don’t have much in the child theme’s functions.php, but here is the offending code, starting on line 28
add_filter('twentyeleven_header_image_width', function($size) { return 961; }); add_filter('twentyeleven_header_image_height', function($size) { return 201; });
I can’t link back to the site because I reverted it to plain old Twenty Eleven until I can resolve the issue.
- The topic ‘Twenty Eleven Header Size T_FUNCTION error HELP!’ is closed to new replies.