Create page template via functions.php?

I want to create a new selectable page template for users that will allow them to identify which pages on the site are “Service” pages (eg plumbing, gas fitting, etc). The template is an exact copy of page.php but includes some JSON LD (schema.org code) for “Service” pages on their website.

website is not loading home page (moving from one server to another server)

I have a wordpress site and i want same site with other domain name at same server. I moved all files and folders to new domains directory and also successfully moved database. My admin panel is working fine but when i enter url of homepage , it does not load homepage as you can see in imagewebsite is not loading home page (moving from one server to another server)
I also chane url of site and home from database. what can be a issue? and also i am getting an error from site health screen and all other things are working properly. any solution guys?