Updated functions.php and footer code