Today I was having an issue with wordpress, again ….
The problem was using a custom functions.php file for a child theme (of twenty-ten theme). I wanted to register a new menu that would only appear in the homepage. I found easily the way through other forums, this was not a big deal. But when I tried to put this in the functions.php file for the child theme (so that the new menu will not be deleted when the parent them gets updated), I noticed that I couldn’t edit files from inside wordpress admin, or login, logout. What I was getting was a beautyful white screen. When I was deleting the functions.php from the child theme folder, wordpress would work properly again.
I tried various solutions I found in the net, deleting all the gaps etc… Nothing worked. Even an empty functions.php with just <?php ?> inside it would break wordpress. I really can’t understand why, but the issue was resolved, when I ommited the closing ?> from the functions.php file inside the child theme folder.
So using this code inside the child themes function.php
<?php register_nav_menus(array('homepagenavigation' =>__('Homepage Navigation','twentyten')));
Notice, no closing ” ?> ” !!!!
the issue was resolved. I really can’t understand why, but if you stumble upon this post, and it helped you resolve a similar issue, then I am happy it helped :).