Instantly share code, notes, and snippets.
By default, SharePoint 2013 and O365 blogs have a byline at the bottom of each post that looks like this:
by LastName, FirstName at Time
This is redundant in the case of individual blogs, except for the time, which is not always desirable. I is also useful in situations where each contributor directly contributes his or her own posts. However, in situations where someone else will be posting on behalf of the blogger, there's no easy way, sort of sharing credentials, to make the byline show up as the intended author. A quick workaround is to simply hide it, which is what this code does.
This code doesn't work on blogs that use the "Inline" blog post template. For those, use this: https://gist.github.com/jamesnotjim/6433dc8b6b8c394a898c2607de46090f