To install a sprinkler head extension, you will need to cut the existing PVC pipe, attach the extension to the sprinkler head using Teflon tape, and secure the connection using PVC cement. Once installed, turn on the water supply and test the sprinkler to ensure that it's working properly.