Skip to content

Instantly share code, notes, and snippets.

@jamesnotjim
Last active April 18, 2017 20:38
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 jamesnotjim/a2ce51de2e4b6918add9795548f1da7f to your computer and use it in GitHub Desktop.
Save jamesnotjim/a2ce51de2e4b6918add9795548f1da7f to your computer and use it in GitHub Desktop.
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>
@jamesnotjim
Copy link
Author

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.

@jamesnotjim
Copy link
Author

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