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.