Add header and footer function to theme