If you are in Airprint not working situation then rather than panicking, you can try these simple things to get out of that situation.
Firstly, you need to check whether your printer supports Airprint or not by visiting the official site of the manufacturer. You can then try the wifi setup on your printer by seeing if the wifi wizard is available or not.
You get to allow the bonjour settings of the printer because if it has been disabled then you won’t be able to print via Apple Airprint. Make sure that your router has a provision for bonjour packets.
You should also check if the printer and the device are connected to the same internet connection or not. These small things will surely help you get out of Airprint not working situation.