Removing backstretch image from pages/posts

Add a conditional to the existing if-statement checking for is_front_page() (or is_home(), depending on your needs):

if ( ! empty( $image ) && is_front_page() ) {

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