Assuming this can be done what is it going to do to the geometry?
All of the major bike manufactures make kids hardtail with suspension shocks in a 24 inch wheel. I would buy one of those if the trails require it. Rather than taking a woom and making it into a mtb.