Articles in this section

How to hide a button in Plesk CSS style page

kb: how-to

Question

Is it possible to hide a button like PHP Settings in Domains > example.com?

Answer

PHP Setting button, like others, does not have the option to be hidden through panel.ini, therefore, it can be hidden by modifying the CSS style page of Plesk. To do that, install the ext-global extension that provides a global.css style file so your changes are kept after Plesk updates:

  1. Connect to the server via SSH

  2. Download the ext-global extension from the attachment to this article

  3. Upload the extension to the server using File Manager and move it to /root directory

  4. Install the extension with the following command

    # plesk bin extension -i /root/ext-global_v1.0.0-1.zip

  5. Add the CSS code to global.css file to hide PHP Settings button

    # echo -e '#buttonPhpSettings {\ndisplay: none !important;\n}' >> /usr/local/psa/admin/htdocs/modules/global/global.css

Note: Replace 'buttonPhpSettings' ID by the ID of the button you want to hide, global.css file should looks like:

# root@plesk:~# cat /usr/local/psa/admin/htdocs/modules/global/global.css
/*!
Copyright 1999-2020. Plesk International GmbH. All rights reserved.
*/
#buttonPhpSettings {
display: none !important;
}

Was this article helpful?

Comments

1 comment
Date Votes
  • .pul-item-list__col:has(#buttonPhpSettings) {
        display: none !important;
    }

    Give better results!

    0

Please sign in to leave a comment.