Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Hide the by-line on SharePoint blog sites
<style type="text/css">
/* Hide by-line author and time */
ul li div div span span .ms-subtleLink {
visibility: hidden;
display: none;
}
/* Uncomment to Hide entire by-line
ul li .ms-textSmall span {
visibility: hidden;
display: none;
}
*/
</style>
Owner

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.

Owner

This code doesn't work on blogs that use the "Inline" blog post template. For those, use this: https://gist.github.com/jamesnotjim/6433dc8b6b8c394a898c2607de46090f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment