Header and footer are shared as one copy of code. When you have two subjects (header and footer), the verb is plural. Time has no factor at all in determining if a verb is singular or plural.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.