Let us try these steps to connect the printer and the PC wirelessly:
On the printer screen, go to Setup > Network Setup > Restore network settings
Go back to Network > Wireless > Wireless setup wizard and select your network.
Make sure the printer and the PC are connected to the same wireless network.
This printer supports only 2.4GHz network. So, the PC should be on the 2.4GHz network.
If you have a Dual-band router and both 2.4GHz and 5GHz networks share the same name/SSID, the printer will not be able to connect to the network. In this case, contact your Internet service provider to assign different names to both the networks.
Once connected, you may click here to download the printer driver if not already installed.
Try printing and scanning.
Hope this helps! Keep me posted.
Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".