Very weird behaviour after removing WP pages

that’s a long issue though, better will be to upload a screenshot of your code to imgur.com and paste the link here so we can check. Rest make you are calling your footer wp_footer() function, if its having footer.php.