• Resolved Xavi86

    (@xavi86)


    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)
  • 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

    (@xavi86)

    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?

    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 for removing “invisible” white space from files.

    Thread Starter Xavi86

    (@xavi86)

    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

    (@xavi86)

    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.