Select the items you wish to purchase:
Remove grass and dirt from around the head surrounding the old sprinkler head, making sure not to damage the pipe.
Remove the old head and fitting from pipe and discard, making sure not to get any dirt into the pipe, as this may clog sprinkler heads.
Insert swing joint fitting into the pipe.
Affix a swing joint fitting to the sprinkler as well.
Measure a length of pipe to be placed between the swing joints (usually about 6-inches) and affix the swing joints on both ends. Then screw in the sprinkler.
Position the head to the correct height, making sure not to kink the swing joint pipe.
Fill in the dirt, assure the sprinkler stays in the correct position and compact the dirt, to prevent sinking. Finally, replace the grass and test the sprinkler to make sure it sprays correctly.