Skip to content

Instantly share code, notes, and snippets.

@fabianneve
Last active January 17, 2018 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabianneve/dbc1a780d89a864d5fde4a53171f487a to your computer and use it in GitHub Desktop.
Save fabianneve/dbc1a780d89a864d5fde4a53171f487a to your computer and use it in GitHub Desktop.
Insert this script into a script editor (in between a script-tag <script type="text/javascript"> ) to change the default label into a custom one.
//self-executing anonymous function
(function () {
// String overrides
function DiscussionListViewStringOverride() {
Strings.STS.L_SPDiscHeroLinkAltText = "New Label"; //change "New Label" into your desired one, eg. "Create News"
Strings.STS.L_SPDiscHeroLinkFormat = "New Label"; //change "New Label" into your desired one, eg. "Create News"
}
DiscussionListViewStringOverride();
ExecuteOrDelayUntilScriptLoaded(DiscussionListViewStringOverride, "strings.js");
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment