This printer supports both 2.4GHz and 5GHz - check to be sure the router is broadcasting on both and select your SSID / network for the bandwidth you want to use. 2.4GHz might reach a bit farther in distance - 5GHz is a bit faster....
If you have not done so, you likely want to remove the wireless setup you were testing at home.
Page 96 Chapter 9 Solve a problem
Restore network settings and then reconnect the printer. See Connect using the HP Smart app on page 25.
Open Category Manuals > Open and Read the User Guide chapter on Connecting the printer. See if you missed anything.
The Troubleshooting is similar for both the printer types - the categories in each of the printer homepages lead to what is available.
What if not a new Envy and not one of the new Deskjet printers?
Printer Home Page - References and Resources –Learn about your Printer - Solve Problems
“Things that are your printer”
NOTE: Content depends on device type and Operating System
Categories: Alerts, Access to the Print and Scan Doctor (Windows), Warranty Check, HP Drivers / Software / Firmware Updates, How-to Videos, Bulletins/Notices, Lots of How-to Documents, Troubleshooting, User Guides / Manuals, Product Information (Specifications), more
When the website support page opens, Select (as available) a Category > Topic > Subtopic
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".