Install the new filter by retracing the steps so far, just backwards.
This is a good time to consider replacing the large secondary filter. If you would like guidance on this, see the secondary fuel filter replacement guide.
Then, pump the primer pump on the car until the primary filter fills with fuel. It's normal for there to be a small air bubble in the primary filter but it should be mostly clear.