# Unexpected end of line in header.php/footer.php after export to WP

**URL:** <https://forum.pinegrow.com/t/unexpected-end-of-line-in-header-php-footer-php-after-export-to-wp/1076>\
**Category:** Pinegrow WP\
**Created:** [July 6, 2017, 1:48pm UTC](https://forum.pinegrow.com/t/unexpected-end-of-line-in-header-php-footer-php-after-export-to-wp/1076 "2017-07-06T13:48:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MikeM](https://avatars.discourse-cdn.com/v4/letter/m/41988e/32.png) [@MikeM](https://forum.pinegrow.com/u/MikeM)\
**Post date:** [July 6, 2017, 1:48pm UTC](https://forum.pinegrow.com/t/unexpected-end-of-line-in-header-php-footer-php-after-export-to-wp/1076/1 "2017-07-06T13:48:37Z")

</div>

Hey guys,

after some problems with the new pinegrow 3.01 i switched back to 2.9 and i got a problem with my template.  
There is a parse error (unexpected end of line) in the header and footer.php.

i figured out that it is because of in the second last line of the header.php `<?php if ( have_posts() ) : ?>`. It works after manually deletingthat line in the header.php. But where does it come from?

The same problem is also in the footer with:

```
<?php else : ?>
            <p><?php _e( 'Sorry, no posts matched your criteria.', 'klirowptheme' ); ?></p>
        <?php endif; ?>

```

How can i disable this php code in pinegrow?

Thank you and best wishes,

Mike

---

<div class="post-metadata">

**Author:** ![MikeM](https://avatars.discourse-cdn.com/v4/letter/m/41988e/32.png) [@MikeM](https://forum.pinegrow.com/u/MikeM)\
**Post date:** [July 6, 2017, 1:58pm UTC](https://forum.pinegrow.com/t/unexpected-end-of-line-in-header-php-footer-php-after-export-to-wp/1076/2 "2017-07-06T13:58:24Z")

</div>

and i figured it out.  
i also set the loop on the tag.  
that was the mistake.

best wishes,

mike
