The only solution that will save small towns is dismantling some of the industrialisation that freed people up to work in the factory or mill that no longer exists. It's a trivial example, but ban preservatives in bread and now they need a bakery that can deliver bread everyday. Bread that lasts two weeks on a shelf is an optimisation for communities that support advanced professions. Heavy industrialisation is a model that no longer fits these communities and while some might be able to attract select tech workers--in effect patchwork, others should realise that they're optimised for a workforce that no longer exists.
All of that may not even be possible. First try and sell your community their way of life is unsustainable, then try and shake the Walmart, McDonalds dependency.