Herefore you can change the label using JavaScript. Insert a script editor webpart into the Category.aspx page and use following script:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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"); | |
})(); |
This script was tested with SharePoint 2013 and SharePoint 2016.
Source: StackExchange.com
No comments:
Post a Comment