WordPress.org

Ready to get started?Download WordPress

Forums

Remove upgrade link from adminpanel (4 posts)

  1. Stef Verbeeck
    Member
    Posted 4 years ago #

    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

  2. Quincy
    Member
    Posted 4 years ago #

    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:

    http://dd32.id.au/2009/01/29/disable-automatic-upgrades-for-a-customised-plugin/

    Cheers,

    Q

  3. conorp
    Member
    Posted 4 years ago #

  4. Stef Verbeeck
    Member
    Posted 4 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic