Viewpoint From the Web
Here you will find a collection of my thoughts about software, technology and life in general.
 
 
 
October 2008
M T W T F S S
« Sep    
 12345
6789101112
13141516171819
20212223242526
2728293031  
 
 

Posts Tagged ‘template’

When I was looking for a way to highlight the author comments in this wordpress template I was creating, I had a search on google. Most of the results were Read the rest of this article »

Wordpress Template Quirks

Thursday, 7th February 2008 by Musaul Karim

If you edit any of the wordpress system files or even just the functions.php of a template, make sure there are no spaces before the <?php or after the ?>.

If you do, it’ll just cause you grief. Some pages will be visible while others will have the following error:

Cannot modify header information - headers already sent

I guess it happens because functions.php is included before it sets the http headers. I haven’t looked at the code enough to figure out where the header is written, so no leading or trailing spaces in wordpress system php files!