Support » Plugin: WP Add Custom CSS » CSS Overwritten – flashed briefly

  • Resolved rcgdacct

    (@rcgdacct)


    Hey there. When I apply a custom css to my page, I see it flash quickly then get overwritten quickly by the defaults. Here is the page :

    http://006.6c2.myftpupload.com/a-day-at-the-museum/

    HEre is the CSS in the CSS section added by the plugin:

    body {
    background-image: url(“http://006.6c2.myftpupload.com/wp-content/uploads/2017/07/cropped-mbadam.jpg”);
    background-color: #cccccc;
    }

    Whatever I put there works for a quick nanosecond then gets over written. any ideas?

Viewing 1 replies (of 1 total)
  • Plugin Author Daniele De Santis

    (@danieledesantis)

    Hello,
    I can’t find that css in your page source, it seems that you’ve removed it.
    I can only assume that your theme or another plugin were overriding your custom css rules, in that case a more specific css rule may help, something like:

    body.page-id-112 {
    background-image: url("http://006.6c2.myftpupload.com/wp-content/uploads/2017/07/cropped-mbadam.jpg");
    background-color: #cccccc;
    }

    If this still gets overridden you could try this:

    body.page-id-112 {
    background-image: url("http://006.6c2.myftpupload.com/wp-content/uploads/2017/07/cropped-mbadam.jpg") !important;
    background-color: #cccccc !important;
    }

    Best,
    Daniele

Viewing 1 replies (of 1 total)
  • The topic ‘CSS Overwritten – flashed briefly’ is closed to new replies.