is_single most likely only works inside of The Loop, and functions.php loads before you're in The Loop. You could try something like this:.
確定! 回上一頁