Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug - crashes with WordPress CSS #24

Open
lautiamkok opened this issue Dec 20, 2017 · 4 comments
Open

Bug - crashes with WordPress CSS #24

lautiamkok opened this issue Dec 20, 2017 · 4 comments

Comments

@lautiamkok
Copy link

It has bugs obviously. It removes all CSS styles you embed or via WordPress system, e.g.:

<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>
        <style type="text/css" id="wp-custom-css">
            /*
You can add your own CSS here.

Click the help icon above to learn more.
*/


.row.row-banner-notice {
   background-color: #000;
}       </style>

The styles above are removed.

How can we fix this?

@ashucg
Copy link

ashucg commented Dec 20, 2017

@lautiamkok is this CSS coming from your theme or any plugin?

@lautiamkok
Copy link
Author

@ashucg it is coming from wp_custom_css_cb() https://developer.wordpress.org/reference/functions/wp_custom_css_cb/

no plugins.

@ashucg
Copy link

ashucg commented Dec 20, 2017

@lautiamkok thanks for the information. I will take a look at this issue ASAP.

@ashucg
Copy link

ashucg commented Dec 24, 2017

@lautiamkok this repository is not maintained and is not RC4-compatible which is why you are facing this issue, @Musiksammler has already forked and updated the code to make it RC4-compatible is is working fine with your css.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants