Safe way to add custom header and footer contents in WordPress