Header and footer Templates not working correctly

(topic deleted by author)