You can use powershell command to change or replace the name of SharePoint which is by default appear on top blue bar.
You can replace a "SharePoint" literal with these are the following options:
===================================
With Label
===================================
Add-PSSnapin Microsoft.SharePoint.PowerShell
# get your site
$myApp = Get-SPWebApplication "http://mysite"
# add text
$myApp.SuiteBarBrandingElementHtml = '<div class="ms-core-brandingText">My Portal</div>'
# update
$myApp.Update()
===================================
With Link
===================================
Add-PSSnapin Microsoft.SharePoint.PowerShell
# get your site
$myApp = Get-SPWebApplication "http://mysite"
# add a linked text
$myApp.SuiteBarBrandingElementHtml = '<div class="ms-core-brandingText"><a style="color:#fff;" href="http://myportal">My Portal</a></div>'
# update
$myApp.Update()
===================================
With Image & Link
===================================
Add-PSSnapin Microsoft.SharePoint.PowerShell
# get your site
$myApp = Get-SPWebApplication "http://mysite"
# add an logo image
# $myApp.SuiteBarBrandingElementHtml = '<div class="ms-core-brandingText"><a href="http://myportal"><img src="/SiteCollectionImages/Logo.png"/></a></div>'
# update
$myApp.Update()
You can replace a "SharePoint" literal with these are the following options:
- With Label
- With Link
- With Image & Link
===================================
With Label
===================================
Add-PSSnapin Microsoft.SharePoint.PowerShell
# get your site
$myApp = Get-SPWebApplication "http://mysite"
# add text
$myApp.SuiteBarBrandingElementHtml = '<div class="ms-core-brandingText">My Portal</div>'
# update
$myApp.Update()
===================================
With Link
===================================
Add-PSSnapin Microsoft.SharePoint.PowerShell
# get your site
$myApp = Get-SPWebApplication "http://mysite"
# add a linked text
$myApp.SuiteBarBrandingElementHtml = '<div class="ms-core-brandingText"><a style="color:#fff;" href="http://myportal">My Portal</a></div>'
# update
$myApp.Update()
===================================
With Image & Link
===================================
Add-PSSnapin Microsoft.SharePoint.PowerShell
# get your site
$myApp = Get-SPWebApplication "http://mysite"
# add an logo image
# $myApp.SuiteBarBrandingElementHtml = '<div class="ms-core-brandingText"><a href="http://myportal"><img src="/SiteCollectionImages/Logo.png"/></a></div>'
# update
$myApp.Update()
No comments:
Post a Comment