Adding else if conditional statement to purchased theme

The conditional for posts is is_single(). So …

if ( ! is_404() && ! is_attachment() && ! is_single() ) {
    # rest of the code
}

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