If you gave the new router the same SSID and the same password as the old one, it should work. If these are different, you have to run the WiFi setup of the printer again to tell it about the new situation.
I have upgraded my 4G connection to fiber optic and now use a different Wifi router. Now my Wifi printer does not connect to Wifi router. Please help.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic