Page Template Won’t Load Correct CSS File

It seems the problem was it wasn’t recognizing it was a page in the first place and thus couldn’t recognize if there was a template applied to it.

Changed

if (is_page_template('page-templates/page-nosidebar.php')) {

to

if (is_page() && !is_page_template('page-templates/page-nosidebar.php')) {

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