Knowledgebase
How to remove from the footer the information about the last modification and view count of pages in MediaWiki
By default, at the bottom of pages there's information about the date and time of the last modification made to the page that's currently displayed, and another piece of information about the number of times the page has been accessed. If you want to hide this information, you can do this with a CSS modification that you can make quickly and easily on the frontend of your MediaWiki site.
CSS (Cascading Style Sheets) modifications in MediaWiki can be performed by editing the page MediaWiki:Common.css. This page in general affects all skins but bear in mind that different skins may have different IDs for the last modification info and the info about the number of times the page has been accessed, and so the particular modification that you add to MediaWiki:Common.css will affect those skins that use the code that you've specified in the modification. If you want to modify only a particular skins, there's a corresponding CSS page for each skin; it uses the name of the skin. For example, to modify only the Vector skin, add the modification to the page MediaWiki:Vector.css.
To access any of these pages on your site, just add it's name to the main URL. If, for example, the main URL of your site is yourdomain.com, then you can access MediaWiki:Common.css with the URL yourdomain.com/index.php/MediaWiki:Common.css. Keep in mind that only members of the admin/sysop user group can access and modify these CSS pages.
To see the results on the frontend after you make such CSS changes you have to clear the browser cache.
In this article we'll show you how to hide the last modification information and the information about the number of times pages have been viewed on the skins that come prepackaged with MediaWiki: Vector, MonoBook, Modern, Cologne Blue. They may work on many other skins but this depends on the particular skin.
For general information on CSS changes in MediaWiki you can also check out the article on how to make CSS modifications in MediaWiki. There you'll also learn how to find the ID of a footer element on your particular skin, or on any skin.
Vector
To hide the information about the last modification, add the following to MediaWiki:Common.css (or to MediaWiki:Vector.css):
#footer-info-lastmod { display: none; }
To hide the information about the view count, add the following:
#footer-info-viewcount { display: none; }
In case you want to remove both, don't use any of the above lines but add just:
#footer-info { display: none; }
MonoBook and Modern
These two skins use the same IDs, so if you add the modifications to MediaWiki:Common.css both skins will be affected. To modify only one of the two skins add the changes respectively to the pages MediaWiki:Monobook.css and MediaWiki:Modern.css.
To hide the last modification information, use the code:
#f-list #lastmod { display: none; }
To remove the information about the number of times the page has been viewed use:
#f-list #viewcount { display: none; }
If you add the following code:
#f-list { display: none; }
this will remove both pieces of information, as well as the meta links (e.g. Privacy policy, About link, Disclaimers).
Cologne Blue
With the skin Cologne Blue there's one ID for both the information about the last modification and the one about the view count. So if you add the following to MediaWiki:Common.css (or MediaWiki:Cologneblue.css):
#footer-info { display: none; }
this will remove both the last modification line and the view count.
When it comes to related modifications and CSS changes you may also find useful the articles:
- how to make CSS modifications in MediaWiki (general overview)
- how to remove "Powered by MediaWiki" from the footer in MediaWiki
- how to change background colors in MediaWiki
- how to change the font color, size and family of text in MediaWiki
- how to remove the buttons for editing page sections in MediaWiki
- how to remove the meta (footer) links in MediaWiki
- how to remove the top navigation page tabs in MediaWiki
- how to remove personal user buttons in MediaWiki
- how to center and change the alignment of page titles and section headings in MediaWiki
- how to change the font style and background color of the site notice in MediaWiki