Uh Oh Whitespace

November 11th, 2011

WordPress is installed everything is all dandy but every time I save my post it would come up with a whitespace issue. What happened? Earlier I had edited the functions.php file with code that would leave the admin bar when users were not logged in and provide an easy way to get to the login screen.

So the problem I had was somehow some text or whitespace (spaces, newline) was inserted before the opening PHP tag or after the closing PHP tag in my theme’s functions.php file. There can’t be a single character before or after those tags.

Once I removed the extra whitespace everything was just dandy again!

Where oh where did the admin bar go?

November 9th, 2011

So I found this beautiful theme that reflected the name of my site and had a pixi feeling to it as well. There was a big issue though. When I went to the site my admin bar disappeared. Back to the dashboard and it reappeared. Why wouldn’t it appear when I was on the site view?

So like I usually do I started to attack google with my question. After much searching I found that there was specific code that had to be within the theme. Within the theme, you must have:

<?php wp_footer(); ?>

usually directly before the </body> tag in footer.php