Jump to content

MediaWiki:Common.css: Difference between revisions

From Wiki
mNo edit summary
mNo edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
$wgHooks['SkinTemplateSetupPageCss'][] = 'wfHideVariousTabsFromAnonymous';
#ca-nstab-main { display: none !important; }
 
#ca-talk { display: none !important; }
function wfHideVariousTabsFromAnonymous( &$hidetabcss ) {
#ca-history { display: none !important;}
global $wgUser;
 
if ( !$wgUser->isLoggedIn() ) {
$hidetabcss .= 'li#ca-history, li#ca-viewsource, li#ca-edit, li#ca-talk, .vectorMenu { display: none; }';
}
 
return true;
}

Revision as of 08:17, 27 May 2026

/* CSS placed here will be applied to all skins */
#ca-nstab-main { display: none !important; }
#ca-talk { display: none !important; }
#ca-history { display: none !important;}