Webtems Posted October 30, 2022 Share Posted October 30, 2022 I'm a web designer and we use WHMCS to invoice and keep track of clients, I don't want clients messing with cpanel in their account so I've disabled the quick shortcuts and the sidebar options, but I'm unsure on how do disable this button, could someone please help. While I'm at it, I'd like to remove the "Register New Domain" option as well. 0 Quote Link to comment Share on other sites More sharing options...
Takito Posted October 31, 2022 Share Posted October 31, 2022 (edited) 18 hours ago, Webtems said: While I'm at it, I'd like to remove the "Register New Domain" option as well. <?php /** * code goes inside "includes/hooks" directory */ /** * Remove Announcements from homepage */ function dctit_remove_announcements_from_homepage( $home_page_panels) { $home_page_panels->removeChild('Register a New Domain'); } add_hook("ClientAreaHomepagePanels", 1, "dctit_remove_announcements_from_homepage"); Edited October 31, 2022 by Takito 0 Quote Link to comment Share on other sites More sharing options...
Webtems Posted October 31, 2022 Author Share Posted October 31, 2022 1 hour ago, Takito said: <?php /** * code goes inside "includes/hooks" directory */ /** * Remove Announcements from homepage */ function dctit_remove_announcements_from_homepage( $home_page_panels) { $home_page_panels->removeChild('Register a New Domain'); } add_hook("ClientAreaHomepagePanels", 1, "dctit_remove_announcements_from_homepage"); Thank you, I got that part. Any idea for removing the button? 0 Quote Link to comment Share on other sites More sharing options...
Takito Posted October 31, 2022 Share Posted October 31, 2022 3 hours ago, Takito said: <?php /** * code goes inside "includes/hooks" directory */ /** * Remove Announcements from homepage */ function dctit_remove_announcements_from_homepage( $home_page_panels) { $home_page_panels->removeChild('Register a New Domain'); } add_hook("ClientAreaHomepagePanels", 1, "dctit_remove_announcements_from_homepage"); I'm sorry, originally it was removal of announcements(Recent news), you may rename everything if needed, but it works regardless. 0 Quote Link to comment Share on other sites More sharing options...
Webtems Posted October 31, 2022 Author Share Posted October 31, 2022 Just now, Takito said: I'm sorry, originally it was removal of announcements(Recent news), you may rename everything if needed, but it works regardless. Thank you, I actually figured out how to remove that on my own, but I'm still struggling with the "Log In To cPanel" button. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted October 31, 2022 WHMCS Support Manager Share Posted October 31, 2022 Hi @Webtems, The template which controls this button is located at /templates/$template_name/includes/active-products-services-item.tpl . You can modify that to meet your needs. For more information customising your WHMCS Theme, see https://developers.whmcs.com/themes/ 0 Quote Link to comment Share on other sites More sharing options...
Webtems Posted October 31, 2022 Author Share Posted October 31, 2022 2 hours ago, WHMCS John said: Hi @Webtems, The template which controls this button is located at /templates/twenty-one/includes/active-products-services-item.tpl . You can modify that to meet your needs. For more information customising your WHMCS Theme, see https://developers.whmcs.com/themes/ Thank you for this answer, that seemed to work. I had figured it was controlled by the cPanel module and not the theme. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.