With gate latches coming in a variety of styles ... magnet inside a magnetic cup and drill them into a piece of wood. Using screws, attach the piece of wood with the magnet to the top of your ...