Printer problem

I have a hp printer which I tried to set up with wifi connection, but due to some problem, I couldn’t set up my printer. I searched many websites for the solution and learned about and got the solution. But I couldn’t apply the solution. What should I do now?