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

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,


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

best wishes,