Jump to content
Webtems

How to remove "Log In To cPanel" from Client Area?

Recommended Posts

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.

 

download.png

 

 

Share this post


Link to post
Share on other sites
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 by Takito

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated