Admin Bar Dump and CSS
-
Hi Frank,
Namaste!
Autoptimize seems to create two CSS files when an admin is logged in because of the inline admin bar dump:
<style type="text/css" media="screen"> html { margin-top: 32px !important; } * html body { margin-top: 32px !important; } @media screen and ( max-width: 782px ) { html { margin-top: 46px !important; } * html body { margin-top: 46px !important; } } </style>
That’s fine, except that the second CSS file has the full CSS code all over again in addition to the inline style above. So I see a CSS file which is loaded for everyone not logged in plus a CSS file which repeats the styles in the first CSS in addition to the above inline. Possible to change it?
- The topic ‘Admin Bar Dump and CSS’ is closed to new replies.