#modx-site-info .site_name { line-height:30px; } #modx-site-info .full_appname { display:none; }
This question has been answered by scoder. See the first response.
$hideVersion = $modx->getOption('hide_version', null, false); if ($hideVersion) { $modx->regClientCSS('path/to/css/file'); } return '';
You could put that code in a separate file and create a Yes/No user setting with a key of hide_version (you might need !important).
Then, in a plugin attached to OnManagerPageBeforeRender, put this code:
$hideVersion = $modx->getOption('hide_version', null, false); if ($hideVersion) { $modx->regClientCSS('path/to/css/file'); } return '';
That should inject your CSS below the regular CSS so it will override the default behavior. I'm not sure it will work, but it's worth a try.
ul.x-menu-list{ display: none !important; }
<?php if ($modx->user->isMember('Administrator')) { return; } $modx->regClientCSS('/manager/templates/custom/css/user.css');