Styling the SuiteBar via PowerShell in SharePoint 2016 – Engineerer
50
post-template-default,single,single-post,postid-50,single-format-standard,wp-custom-logo,bridge-core-3.1.2,qode-page-transition-enabled,ajax_fade,page_not_loaded,,footer_responsive_adv,hide_top_bar_on_mobile_header,qode-content-sidebar-responsive,qode-theme-ver-30.1,qode-theme-bridge,qode_header_in_grid,elementor-default,elementor-template-full-width,elementor-kit-641,elementor-page-1064
PowerShell Window

Styling the SuiteBar via PowerShell in SharePoint 2016

A customer of mine had some requirements concerning the style of the SuiteBar. That’s the black line in the top of the screenshot below. The premises were to not use JavaScript or Master Page customizations.

Only option was using PowerShell.

I got the SPWebApplication object by doing this:

$wa = Get-SPWebApplication "https://name"

And those are my findings:

  • SuiteBarBrandingElementHtml does nothing for the SharePoint 2016 Master Page. It probably can be used for the SharePoint 2013 Mager Page.
  • SuiteNavBrandingLogoNavigationUrl is the link of the SuiteNavBrandingText “KAI” and the SuiteNavBrandingLogo. The links can’t be customized individually.
  • SuiteNavBrandingLogoUrl is the URL to the logo to display. The location on the page can’t be customized via PowerShell.
  • SuiteNavBrandingLogoTitle is the title property of the logo (<img title=”LOGOTITLE” src=”imgsrc.png”>).
  • SuiteNavBrandingText is displayed to the left.

Conclusion

The customization abilities via PowerShell are very limited. From my point of view it would be best to just use JavaScript and CSS in a custom Mager Page. We might do that for this particular customer, since he wants to change some tiles in the tiles menu as well. The tiles menu is the one that opens when you click on the menu left of “KAI”.

Bonus

It’s possible to add custom tiles to the tiles menu. However it’s not possible to change or delete the existing ones. Also you can’t add custom tiles before the out-ot-the-box ones. Here you find more about this topic.