Global Search Box Visibility in Saleforce Tabs + Visualforce Communities
If current user profile has “Chatter Enabled” permission then Global Search Box would be visible otherwise search box in left side bar will be shown. Sources: https://help.salesforce.com/articleView?id=networks_search_behavior.htm&type=0