Devi aggiungere i codici non nei file di WP, ma in uno o più file di template del tema, dove quei tag sono contenuti tipo, ad esempio, header.php, al punto indicato. Quali file dipende dal tema. Prima dovrai però creare un child-theme e fare lଠle modifiche, altrimenti le perderesti a ogni aggiornamento del tema.