adapted for child/parent themes

Signed-off-by: Michele Salvini <info@slv.dj>