How to override html codes in wordpress?

I found solution to my question.
Just create folder with same name (in my case name is template-parts) and pasted copied php file to the folder.

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