• Resolved klewis

    (@blackawxs)


    I would like to add a custom style sheet to the maintenance window. what is the most efficient way to do that?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Lukas Juhas

    (@lukasneptun)

    Hey,

    sorry for the late reply – the new updates to the WordPress plugin pages is quite confusing and I completely missed your message!

    Regards to your question, this is not possible unfortunately because the way this plugin works, it’s using WordPress’s core function called wp_die() and all the markup and page layout coming from there and it’s not possible to filter this just yet. I’ve opened a ticket in core to add some filters but this has not been added and I’m not sure if it ever will be.

    I think there is a way how to style this by overwriting this function in your theme / plugin but that might get a bit tricky and I haven’t tried that.

    I hope this helps, sorry for the inconvenience.

    Lukas

    A workaround is to put your css in the content editor itself. While not an ideal method, it works to override the default styling.

    
    <style type="text/css">
    html {background-color:#333;}
    body {background-color:#424242;}
    h1 {color:#fff;}
    p {color:#e0e0e0;}
    </style>
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add custom style sheet’ is closed to new replies.