Why won't my code hide the header on both pages?

This worked, thank you very much.