Adding functions.php to child theme
-
I’ve loaded the theme onto a fresh new install of WordPress. I then loaded my own child theme (style.css and functions.php, both with no theme modifications), and got the following error:
Warning: Cannot modify header information – headers already sent by (output started at /home2/cheryl27/public_html/notsoalternateideas.com/wp-content/themes/Mesocolumn Child Theme/functions.php:6) in /home2/cheryl27/public_html/notsoalternateideas.com/wp-includes/pluggable.php on line 1228
(Or something similar… the “on line xxx” might have been different, but everything else was the same.)
So then I deleted my child theme (the error went away), and loaded the theme-provided child theme. With ONLY the theme-provided child theme, there were no errors.
Then I created a “blank” functions.php, with only the following in it:
<?php
// Your php code goes here
?>and the error returned (this is the current “on line xxx” error):
Warning: Cannot modify header information – headers already sent by (output started at /home2/cheryl27/public_html/notsoalternateideas.com/wp-content/themes/Mesocolumn Child Theme/functions.php:6) in /home2/cheryl27/public_html/notsoalternateideas.com/wp-includes/pluggable.php on line 1228
What’s going on? How can I include a functions.php in my child theme?
Site Link: https://notsoalternateideas.com/
Thanks for the help! ??
- The topic ‘Adding functions.php to child theme’ is closed to new replies.