Turn on the printer after making sure the main tray is loaded with paper. Select Network setup or Settings from the Wireless or Setup menu, and then Restore Network Settings. Obtain the network name as well as the password. Wi-Fi Protected Setup (WPS), the printer's onboard HP Printer Wireless Setup Wizard, or connecting your printer to your computer via USB and configuring the wireless connection using the supplied software are the three major ways to connect your printer to your Wi-Fi network.
How to connect a printer via wireless network:-
Step 1: Locate your settings. Once turned on and ready for configuration, you'll need to connect the printer to your home WiFi. ...
Step 2: Link your WiFi network.
Step 3: Complete connectivity.
Step 4: Locate your printer settings.
Step 5: Connect the HP printer wireless to the computer.