Amend functions.php and front end scripts