artetatu Posted July 26, 2016 Share Posted July 26, 2016 (edited) how to modify/remove cpanel login link from client area, i don't use it because cpanel login link always go to hostname:2082 instead ip:2082 (i have one reseller account and my client will know my upline from hostname) i have edited cpanel template and cpanel shortcut on main page removed, but i dont know how to remove/modify cpanel login link in left sidebar how to remove/modify it? whats file? https://dl.dropboxusercontent.com/u/95309504/cpanel.PNG Edited July 26, 2016 by artetatu 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 26, 2016 Share Posted July 26, 2016 ideally, you'd need to use an action hook to modify or remove the sidebar entry. e.g if you wanted to change the links for cpanel and/or webmail, you could use the hook in the thread below... http://forum.whmcs.com/showthread.php?104894-Login-to-cPanel-amp-Webmail-on-Client-Product-Details&p=432807#post432807 you would create a .php file within the /includes/hooks/ folder and add the above code to it - when you refresh the page, the links should change to those specified in the hook. btw - I suppose you could edit sidebar.tpl to tweak it, but I suspect the code required would not be worth considering - using the hook will be cleaner and easier. 0 Quote Link to comment Share on other sites More sharing options...
USA_Webmaster Posted July 26, 2016 Share Posted July 26, 2016 Did you try CSS hack using CSS3 :nth-of-type() Selector yet>? Also, if using stock theme, you can just ® Click > Inspect and than you'll be able to create new style. So for example, this will hide the Log into cPanel sidebar nav item: a#Primary_Sidebar-Service_Details_Actions-Login_to_cPanel { display: none; } If you want, send me a link to your site, create a demo test client and with the credentials, I'll hop in real swift, make a few tweaks and send you code. TTYL 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 26, 2016 Share Posted July 26, 2016 Did you try CSS hack using CSS3 :nth-of-type() Selector yet>? it's a quick way to remove it (though not as cleanly as a hook would), so I wouldn't use it unless the hook was too difficult to code. for adding, removing or /modifying a sidebar entry, the hook would be better - there are plenty of examples in the forums of how to do it. 0 Quote Link to comment Share on other sites More sharing options...
artetatu Posted July 26, 2016 Author Share Posted July 26, 2016 ideally, you'd need to use an action hook to modify or remove the sidebar entry. e.g if you wanted to change the links for cpanel and/or webmail, you could use the hook in the thread below... http://forum.whmcs.com/showthread.php?104894-Login-to-cPanel-amp-Webmail-on-Client-Product-Details&p=432807#post432807 you would create a .php file within the /includes/hooks/ folder and add the above code to it - when you refresh the page, the links should change to those specified in the hook. btw - I suppose you could edit sidebar.tpl to tweak it, but I suspect the code required would not be worth considering - using the hook will be cleaner and easier. it works perfectly thanks 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.