• crzyhrse

    (@crzyhrse)


    Updating several sites has gone well… Much gratefulness for all the fine work and changes…

    How can I get rid of this notice at the top of the child theme stylesheet? There is no dismiss link and it doesn’t go away..N

    Did you know?
    There’s no need to change your CSS here — you can edit and live preview CSS changes in the built-in CSS editor.

    • This topic was modified 7 years ago by crzyhrse.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator t-p

    (@t-p)

    You can’t remove those.

    They’re fixed cautionary notices,

    • This reply was modified 7 years ago by t-p.
    twcfan92

    (@twcfan92)

    It would be nice if we could dismiss it. In the meantime, here’s a workaround. Add it to your theme’s functions.php file.

    
    add_action('admin_head', 'removeMessage');
    
    function removeMessage()
    {
        echo <<<EOF
    <style>
    #message
    {
        display: none;
    }
    </style>
    EOF;
    }
    
    • This reply was modified 7 years ago by twcfan92.
    Thread Starter crzyhrse

    (@crzyhrse)

    @twcfan92, thank you very much for this… The code does as desired…

    And also @t-p, some inquiry…?

    A strange thing… When I put this code in through Dashboard>Appearance>Editor>functions.php, and hit Update, it runs for long time, then reverts back, with this Redlined notice:

    Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.

    This happens so far on on two different servers, two different hosting situations… Figure it is part of all the changes with 4.9…

    I put it in through the cPanel and it does what it is meant to do, totally fine…

    And so question…?
    Is WordPress now limiting code that can be put in through Dashboard>Appearance>Editor>functions.php…?

    I have collected lots of functions that I use on sites, like this one, from wonderful folks like @twcfan92 who code way beyond me and freely share their skills…

    And the notice top of style.css that can’t be dismissed normally…? Is there intention to “orchestrate” folks into different workflow patterns…?

    To not be able to put in functions via the site is not so good, adds a lot of extra work unnecessarily…

    I am hoping that is not the case, that this a bug, so to speak…?

    Pádraig ó Beirn

    (@padraigbeirne)

    @crzyhrse It appears that this is a bug. Some users, including myself, are getting that error when we try to edit active theme php files or plugins. Non-activated themes or plugins can be edited fine in the WP Editor.
    See the discussion here – https://www.ads-software.com/support/topic/cant-edit-main-theme-php-files-after-upgrading-to-4-9/

    Thread Starter crzyhrse

    (@crzyhrse)

    @padraigbeirne, Thanks for letting me know… Have added a comment there, to add to the broadness of it…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Notice top of the child theme stylesheet…’ is closed to new replies.