Added check to see if we're in the "onsite" directory for social media widgets.