Add action “page_template” not work with home page

That is because page_template action really works only for “Pages”. Not for blog listing / home …

You can use template_include hook with broader impact.

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