Gophers are wily and notoriously difficult to trap. If you're intent upon trapping, watch for new mounds, then probe a couple of feet beyond the mound to find the tunnel.
Creating a barrier around beds or plants with coffee grounds can work. You also can try peppermint oil; soak cloth in peppermint and scatter around your plants.
During winter, you can try starving the gopher out by growing a cover crop of grains. They don't provide enough nutrition to keep a gopher alive.
Hunting a gopher can quickly become an unrewarding obsession, so I'd just bite the bullet, save your sanity, and install raised beds, making sure you line the bottom with the wire mesh.
Collection
[
|
...
]