ok, I change some stuff to my function and it’s seams to work a little bit better, the theme is not broken anymore and the stylesheet is loaded, but the template still not.. (theme images are loaded, font have correct size…etc but everything is not at the correct place)
I try to use locate_template($themes[$newThemeName][‘Template Files’], true) but it doesn’t work…