To make these Classic Nanaimo Bars gluten-free, replace the graham cracker crumbs with a certified gluten-free graham-style crumb or crushed gluten-free digestive biscuits. Ensure that all other ingredients, such as custard powder and coconut, are certified gluten-free to avoid cross-contamination.