Jump to content

hook Contacts Sub-Accounts


PeterPH

Recommended Posts

Hello everyone! 

I am removing everything that I don't need from the Client page. So far so good, I am able to find and remove all. 

I just can not find ONE name

 $primarySidebar->getChild('My Account')->removeChild("Contacts Sub-Accounts");

Looking at the dev console, seems that  Contacts Sub-Accounts should be correct >  id="Primary_Sidebar-My_Account-Contacts_Sub-Accounts"

but no, it does not remove it.   I tried also all combinations with spaces, underscore and dash !

Can anyone help me? 

 

Thanks 
Peter

 

 

Link to comment
Share on other sites

Hi Peter,

22 hours ago, Piuhost said:

Looking at the dev console, seems that  Contacts Sub-Accounts should be correct >  id="Primary_Sidebar-My_Account-Contacts_Sub-Accounts"

but no, it does not remove it.   I tried also all combinations with spaces, underscore and dash !

rule #14 of WHMCS - it's always the option that you didn't try that is the one you need to use! 🙂

two options with this - if you're going to remove it with a hook, then you use it's menuitemname - which in this case is "Contacts/Sub-Accounts"...

if you want to avoid using a hook to remove this, then you can hide it with CSS by adding the code below to /templates/six (or your active template)/css/custom.css ...

#Primary_Sidebar-My_Account-Contacts_Sub-Accounts {display: none;}
Link to comment
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