updated markup and php code in footer.php and home template