Skip to content

Instantly share code, notes, and snippets.

@moderatorwes
Last active August 29, 2015 14:07
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 moderatorwes/b598c946896d7fc84af2 to your computer and use it in GitHub Desktop.
Save moderatorwes/b598c946896d7fc84af2 to your computer and use it in GitHub Desktop.
Zendesk: Remove Author and replace with another author
//Remove author from articles
$(".article-author").first("a").html(
$(".article-author").first("a").html().replace("Inactive Agent", "Support Team")
);
//Remove author from Search results
$(".search-result-meta a:first-child").replaceWith("<b>Support Team</b>");
//You can use the below code to just replace the author's name with something\someone else. Similar to code above
//Remove a particular author and replace inside of Search Results
$(".search-result-meta a:first-child").html(
$(".search-result-meta a:first-child").html().replace("Inactive Agent's Name", "Support Team"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment