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:
-
Connect to the server via SSH
-
Download the ext-global extension from the attachment to this article
-
Upload the extension to the server using File Manager and move it to
/root
directory -
Install the extension with the following command
# plesk bin extension -i /root/ext-global_v1.0.0-1.zip
-
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;
}