More ideas from Nika
Awesome do it yourself baby gate that swings open and holds a full person's weight.

How to build a Safe and Strong Baby/pet Gate. It just uses PVC components. I bet you can adjust the plan to fit any size opening (it is almost impossible to buy a gate for a very narrow doorway).