PeterPH Posted March 10, 2019 Share Posted March 10, 2019 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 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 11, 2019 Share Posted March 11, 2019 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;} 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.