Title: Getting error: Warning: Cannot modify header information&#8230;
Last modified: August 21, 2016

---

# Getting error: Warning: Cannot modify header information…

 *  Resolved [jstudios](https://wordpress.org/support/users/jstudios/)
 * (@jstudios)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/getting-error-warning-cannot-modify-header-information/)
 * I’ve read other posts about removing whitespace from the referenced file, but
   I didn’t find any whitespace that could be the culprit. This is on a fresh install
   of 3.6.1.

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/getting-error-warning-cannot-modify-header-information/#post-4206275)
 * We can’t see whitespace on a copy/paste of code – and that’s really too long 
   to post here.
 * What is the error you see?
 *  Thread Starter [jstudios](https://wordpress.org/support/users/jstudios/)
 * (@jstudios)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/getting-error-warning-cannot-modify-header-information/#post-4206276)
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home2/jstudios/public_html/jframe.jirehstudios.com/wp-content/themes/js-theme/
   jframe/jframe-options.php:1) in /home2/jstudios/public_html/jframe.jirehstudios.
   com/wp-includes/option.php on line 571
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home2/jstudios/public_html/jframe.jirehstudios.com/wp-content/themes/js-theme/
   jframe/jframe-options.php:1) in /home2/jstudios/public_html/jframe.jirehstudios.
   com/wp-includes/option.php on line 572
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/getting-error-warning-cannot-modify-header-information/#post-4206277)
 * And is this in relation to a plugin or a theme?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/getting-error-warning-cannot-modify-header-information/#post-4206278)
 * A theme. Try reviewing [Solving “headers already sent” warnings](http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F).
 *  Thread Starter [jstudios](https://wordpress.org/support/users/jstudios/)
 * (@jstudios)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/getting-error-warning-cannot-modify-header-information/#post-4206290)
 * Ok, so I removed the “<style…” section i had at the beginning of the file because
   the link above says the file needs to start with <?php. Now it’s working.
 * What’s the best way to include the styling in that file now?
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/getting-error-warning-cannot-modify-header-information/#post-4206319)
 * CSS should generally be in a .css file – it’s not meant to go in a .php file.
 *  Thread Starter [jstudios](https://wordpress.org/support/users/jstudios/)
 * (@jstudios)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/getting-error-warning-cannot-modify-header-information/#post-4206333)
 * Ok, so how do I relate the css file with he php file? If I include it do I just
   echo the style tags?
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/getting-error-warning-cannot-modify-header-information/#post-4206334)
 * If you are trying to add CSS to your site, I’d suggest using a custom CSS plugin.
 * If you want to add whole file, see:
 * [http://codex.wordpress.org/Function_Reference/wp_enqueue_style](http://codex.wordpress.org/Function_Reference/wp_enqueue_style)
 *  Thread Starter [jstudios](https://wordpress.org/support/users/jstudios/)
 * (@jstudios)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/getting-error-warning-cannot-modify-header-information/#post-4206404)
 * Got it, I just registered and en-queued the stylesheet.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Getting error: Warning: Cannot modify header information…’ is closed 
to new replies.

## Tags

 * [cannot](https://wordpress.org/support/topic-tag/cannot/)
 * [header](https://wordpress.org/support/topic-tag/header/)
 * [Modify](https://wordpress.org/support/topic-tag/modify/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 3 participants
 * Last reply from: [jstudios](https://wordpress.org/support/users/jstudios/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/getting-error-warning-cannot-modify-header-information/#post-4206404)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
