I would like to know if it is possible to remove/hide the Print/export options on the home page of my site http://jpwiki.clicklaw.bc.ca/. I have Mediawiki 1.31.6. Is this possible to do?
Thanks in advance for your help.
I would like to know if it is possible to remove/hide the Print/export options on the home page of my site http://jpwiki.clicklaw.bc.ca/. I have Mediawiki 1.31.6. Is this possible to do?
Thanks in advance for your help.
Yes it is possible with CSS or via a hook, but I can't view your site to provide it to you, it requires a login and password. What skin are you using?
For example, using the web inspector in chrome, I could inspect the "Help" link on this page to see what it's li (list item) ID is:
https://en.wikipedia.org/wiki/Cat
<li id="n-help">
Then in the wiki's skin css (if the skin was Vector the appropriate css page would be MediaWiki:Vector.css) I would add something like the following: Note that IDs in css are denoted by a "#" symbol and classes by a "."
li#n-help { display:none; }
Then when I do a hard refresh on the site page (Ctrl + Shift + R) on PC, then I would see my changes reflected.
are you using collection for other things? If not id suggest just disabling extension.
Thanks @TiltedCerebellum and @Bawolff, you could see a copy of the site (without password protection) here https://wiki.clicklaw.bc.ca/index.php?title=Main_Page. I do use the collection extension for other things and I would just want to hide the print/export options from the sidebar for just the main page. Do you think that is possible?
yes. Put:
body.page-Main_Page #p-coll-print_export {display:none}
On https://wiki.clicklaw.bc.ca/index.php?title=MediaWiki:Common.css