Title: Sidebar code breaks my theme.
Last modified: August 18, 2016

---

# Sidebar code breaks my theme.

 *  [arharris2](https://wordpress.org/support/users/arharris2/)
 * (@arharris2)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/sidebar-code-breaks-my-theme/)
 * 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.

## Tags

 * [bar](https://wordpress.org/support/topic-tag/bar/)
 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [function.php](https://wordpress.org/support/topic-tag/function-php/)
 * [pluggable.php](https://wordpress.org/support/topic-tag/pluggable-php/)
 * [side](https://wordpress.org/support/topic-tag/side/)
 * [widgets](https://wordpress.org/support/topic-tag/widgets/)

 * 0 replies
 * 1 participant
 * Last reply from: [arharris2](https://wordpress.org/support/users/arharris2/)
 * Last activity: [19 years, 2 months ago](https://wordpress.org/support/topic/sidebar-code-breaks-my-theme/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
