I had similar issue, and spent few hours trying to figure out why.
In end realized that when we add a custom post type, the .htaccess file doesn’t update the permalink structure.
So just update the permalink structure {switch to something else and back again} and everything will work fine.
cheers!
You have plenty of floating elements in the layout thats why your main content is of height zero and the footer goes to the top of page…
create a new class clearfix
.clearfix:after{
content: "";
height:0;
clear:both;
display:block;
}
apply this to all containers which have floating elements…