WordPress.org

Support

Support » How-To and Troubleshooting » Remove upgrade link from adminpanel

Remove upgrade link from adminpanel

  • Hi,

    We installed WP for a clients website and modified it. Last weekend however, someone clicked the “upgrade now” link in the yellow box on top of the admin panel, which caused a fatal error. We had to upload a backup to fix the site.

    Is there a way to remove this link on sites we develop for clients so they won’t click it without our support?

    Greets,
    Stef

Viewing 3 replies - 1 through 3 (of 3 total)
  • Quincy
    Member

    @lodjixmedia

    Hey,

    I tend to remove this as well sometimes when I develop custom sites.

    One way to do it is to edit: http://yorsite.com/wp-admin/css/colors-fresh.css

    Find #update-nag and update it to the following:

    #update-nag {
    background-color:#FFFEEB;
    border-color:#CCCCCC;
    color:#555555;
    display:none;
    }

    for the plugins, look for: .plugin-update-tr .update-message and update to:

    .plugin-update-tr .update-message {
    background-color:#FFFBE4;
    border-color:#DFDFDF;
    display:none;
    }

    This will remove the yellow “update plugins” row, but you’ll still see the count of how many plugins needs to be updated (and the list of “upgrades available”) without the means to “upgrade automatically”

    …Also, you can disable the “upgrade automatically” option and display a custom message:

    Disable Automatic upgrades for a customised plugin

    Cheers,

    Q

    That’s awesome, I didn’t even think of changing the css, I was planning to dig into the actual PHP, but this is way easier.

    Thanks for your advice!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove upgrade link from adminpanel’ is closed to new replies.