Why does it say that printer is offline?
Why is my printer offline but connected to WIFI?
Why is my printer not connecting to WIFI?
If this happens, go to Settings > Devices > Printers & Scanners, select your printer, and remove it. Then click the Add a Printer or Scanner button to re-add it to the device list. Incredibly (and frustratingly), this often gets things up and running again.