We had a gap between our fence and hedge which became a problem when our 1.5 years old daughter figured out that she can fit through it. I spent an afternoon in the workshop to manufacture a bolt-on extension for it.
I drilled holes, which I threaded, on the fence post so the extension can be easily removed if needed.