More Functions fix

More fixes to functions.php and sidebar.php to see if it will not
crash wordpress.