To make these Tom Thumb Bars gluten free, replace the all-purpose flour in both the crust and topping with a high-quality 1:1 gluten-free baking flour blend. Be sure the blend is designed for baking and contains xanthan gum, or add it if needed according to the package directions. Also check that the baking powder, vanilla extract, shredded coconut, and nuts are certified gluten free and free from cross-contact warnings. Once those substitutions are made, the recipe can be prepared in the same way.