I've been developing a child theme for 2011 for a while now on my localhost/pc and all was looking good (have followed all the tuts in codex + forums etc). So did a fresh wp install in root of my current site and checked it with standard 2011 theme - all good.
Then uploaded my child theme and activated it, but now can't save any changes to my pages, or even save other settings (could at first) and this warning is displayed for every page:
Warning: Cannot modify header information - headers already sent by (output started at /home/trevorpe/public_html/wp-content/themes/twentyeleven_child/functions.php:8) in /home/trevorpe/public_html/wp-includes/pluggable.php on line 881
The only code I have in my child functions at line 8 =
<?php add_theme_support( 'custom-header' ); ?>
and the total code in it is only this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Twenty Eleven Child Theme functions and definitions</title> </head> <body> <?php add_theme_support( 'custom-header' ); ?> </body> </html>
which is what I thought it should be...
Any ideas what this warning means and how I can fix it?? Otherwise I'm totally stuck!
All help very gratefully received. Thanks.