add function to theme config if not exists, function will missing