WordPress doesn’t work that way. If your developers are experienced enough to write the code dynamically, you won’t need to change the template Uri.
Let’s say you want to get a URL for a stylesheet, you can use:
echo get_template_directory_uri(). '/style.css';
This will automatically fetch the domain and the template’s Uri. This piece of code is dynamic, it means that it will produce the correct result under any domain.
After relocating a WordPress installation to another domain, you have to do two steps.
- Change the
siturl
andhomeurl
entries in the database. These are located underwp_options
table, and must match your domain and WordPress installation directory. - Do a search replace inside your posts, to replace the old harcoded permalinks ( for example, the images in your posts ) with the new URL. All you have to is to install a plugin such as better search replace and replace every
old-domain.com
withnew-domain.com
.
That’s all it usually takes to transfer an installation.