is_home() not working in functions.php file

It turns out that the first hook function, which contained a query needed a reset.

Adding wp_reset_query(); after the initial query has fixed the issue.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)