Last active
April 18, 2017 20:38
-
-
Save jamesnotjim/a2ce51de2e4b6918add9795548f1da7f to your computer and use it in GitHub Desktop.
Hide the by-line on SharePoint blog sites
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
<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> |
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
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.