fix for custom theme locations

This PR shows the changes made to allow a custom theme location.