Title: Problem with get_header()
Last modified: August 19, 2016

---

# Problem with get_header()

 *  Resolved [Xavi86](https://wordpress.org/support/users/xavi86/)
 * (@xavi86)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/problem-with-get_header/)
 * Hi guys!
 * I’m just trying this last version of wordpress for the first time and get_header()
   is adding some blank line when is called. I think this is happening with get_footer()
   too.
 * If i just copy all the code inside header.php to index.php and remove the line
   <?php get_header(); ?> it all appears great so this is a wordpress problem right?

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/problem-with-get_header/#post-1976280)
 * It’s a problem in your WP files, yes. You’ve introduced an leading blank line
   intp one of your files. Could be wp-config.php. Or your theme’s functions.php
   file.
 *  Thread Starter [Xavi86](https://wordpress.org/support/users/xavi86/)
 * (@xavi86)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/problem-with-get_header/#post-1976284)
 * You’re right, i deleted functions.php and the blank space disappeared.
 * I now added a new functions.php empty, with just this:
    <?php ?>
 * An still is appearing the white space. What’s the solution? I need to use functions.
   php file, naturally. Encoding?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/problem-with-get_header/#post-1976287)
 * It could be an encoding issue. If you;re using a *nix server, try saving the 
   file in Unix format. Also check some of the solutions on [this Codex page](http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F)
   for removing “invisible” white space from files.
 *  Thread Starter [Xavi86](https://wordpress.org/support/users/xavi86/)
 * (@xavi86)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/problem-with-get_header/#post-1976291)
 * I’m using Xampp, so it’s an apache server i think. I will try your solution. 
   Thank you for the help!
 *  Thread Starter [Xavi86](https://wordpress.org/support/users/xavi86/)
 * (@xavi86)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/problem-with-get_header/#post-1976295)
 * If someone have the same problem the solution is saving the file with ANSI enconding.

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

The topic ‘Problem with get_header()’ is closed to new replies.

 * 5 replies
 * 2 participants
 * Last reply from: [Xavi86](https://wordpress.org/support/users/xavi86/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/problem-with-get_header/#post-1976295)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
