Jump to content

Customising the Hosting Information Tab


giant9182

Recommended Posts

To customize the Hosting Information tab in the WHMCS Client Area and remove the "Log in to DirectAdmin" button, you’ll need to edit the relevant template file located at:

/templates/{your_active_template}/clientareaproductdetails.tpl

Replace {your_active_template} with the folder name of the theme you're using (e.g., twenty-one).

Steps to Remove the Button:

  1. Open the file clientareaproductdetails.tpl in your active theme directory.

  2. Look for the following block, or a similar variant that renders the DirectAdmin login button:

    {if $service.directadminloginurl}
        <a href="{$service.directadminloginurl}" target="_blank" class="btn btn-default">
            {$LANG.directAdminLogin}
        </a>
    {/if}
  3. Remove or comment out the block to hide the button.

  4. Clear the WHMCS template cache after editing:

    • Go to Utilities > System > System Cleanup > click Empty Template Cache

Once you've done that, the button should no longer appear in the client area for hosting services on DirectAdmin.

 

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