Made the portal template compatible with the redefined theme