Connect Arduino Nano(CLONE) to WiFi using ESP8266 ES-01.

But ESP8266-01 has only 2 GPIO Pins and Arduino has 13 digital pins and 8 Analog Pins, I am asking to tell me the steps to convert a ESP8266-01 to WiFi Shield on Arduino because I know how to write codes on Arduino and make them work.

Please tell me how can I use ESP8266-01 as a shield to connect to wifi rather than a standalone device.
I am having a HC-05 Bluetooth Module and I know how to code it, tell me to use ESP8266-01 as a plug and play WiFi adapter for my Arduino.