Remove CSS from head when not logged in?
-
Hi damiroquai,
thank you for this simple but very useful plugin.
Here’s an improvement suggestion:
By now, the plugin adds some css code to the head area of WordPress.<style type="text/css"> #wpadminbar { position: absolute !important; top: 0px !important;} .myfixed { position: fixed!important; top: 0px!important; left: 0px!important; margin-top: 0px!important; z-index: 1000000; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=95)"; filter: alpha(opacity=95); opacity:.95; background-color: #F39A30!important; -webkit-transition: 0.3s; -moz-transition: 0.3s; -o-transition: 0.3s; transition: 0.3s; } #mysticky_wrap { width:100%; } .navbar{ top: -100px; width:100%; position: static; max-width: 100% !important; }</style>As this is necessary while being logged in I don’t think we need it if we’re not logged in. So do you think you can fix this in an upcoming version of the plugin?
I think you could use the is_user_logged_in function: http://codex.ww.wp.xz.cn/Function_Reference/is_user_logged_in
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Remove CSS from head when not logged in?’ is closed to new replies.