Hi there and welcome Caroline
To do this, put the printers installation disk in the computer and proceed with installing the printer.
Then on the Select a Wireless Network, choose Using Printer Buttons.
Then follow the screen steps to use the buttons on the printer itself to connect to the new network.
Once done, the computer is then updated with the new connection route to the printer.
This video shows how to do this
Let me know how you go please.