• I recently built my own wordpress theme and it seems to work well except for one problem. Whenever the theme is enabled and I try to change something via the web interface (editing the theme’s code, writing a post) I get a warning that says this:

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/wp-content/themes/wp-windows/functions.php:5) in /var/www/wp-admin/theme-editor.php on line 55

    but when I hit back and view whatever I was changing, it’s been changed. So I know that it works but it gives me this stupid warning. After some trouble shooting I’ve found that it’s due to the sidebar widgets code in “functions.php”. But this code is the same code that they provide on the website. I really want to have the ability to use the sidebar widgets but this problem is really annoying. So could someone help me out here?

  • The topic ‘Sidebar code breaks my theme.’ is closed to new replies.