After you beat the game, the Lilycove Dept. store can have rooftop sales, where you can buy secret base items. One of these is the Solid Board, which covers those holes in your secret base. However, it is worth noting that these don't happen very often, so you'll have to wait a bit for one to happen. You can check with the Pokemon News Station to see when they happen.
Hope this helped.