cPanel & WHM is a tool that has become synonymous with web hosting. However, while hosting providers around the world use this software to offer their customers the freedom to manage their websites, email accounts, databases, and more, they have also been given very few options when it came to customizing, personalizing, and branding the dashboard they offer their clients. This has changed in our recent updates to cPanel & WHM. Now, with additions like Paper Lantern to our software suite, web hosts can alter the color, feel, and overall experience of the cPanel dashboard to provide their customers with a personally branded and truly unique cPanel experience. So grab a coffee, let’s rebrand, and design the cPanel dashboard as if it was your product.
For this process, cPanel Reseller accounts will be the starting point. Any information related to Root accounts can be found in cPanel Style Documentation. Here are a few assumptions of what you’ll need to have:
Like any project, you’ll need to come up with a game plan. Start by figuring out the areas you wish to customize. Customization can range from colors and layout to simple behavior interactions. You’re only limited by your imagination!
Once you have an idea of the changes you’d like to make, take the time to draw it out. This will help you achieve your vision without losing sight of your objectives. Think of it as your goal post.
To increase brand awareness, it’s beneficial to provide your customers with a way to identify and associate your brand with the cPanel dashboard. Here is the first course of action necessary to change the cPanel logo to your custom logo.
cPanel > Customization
When you’re finished, switch and log into the cPanel dashboard [ex: http://yourdomain.com/cpanel] and you’ll notice your logo and favicon have been updated.
The bulk of customization is done through CSS. The diagram below shows the common elements, in IDs and Classes, that allow you to specify and modify the custom style.
Pro Tip:
You can use your mouse and right-click on any area in your Chrome or Firefox browser and select inspect element within the cPanel dashboard to identify existing IDs and Classes with the style code. Inspecting elements and the steps below will show how each design can be overridden to your custom style.
Home > Files
and select File Managervar/cpanel/reseller/styled
if it doesn’t exist.navbar-preferences {background-color: blue;}
I encourage you to keep tinkering with your CSS style until you’re satisfied. For further information on styling elements, you can read through cPanel documentation on setting up your stylesheet or writing your custom CSS.
Sometimes styling the layout isn’t enough. There might be occasions when additional pieces of information should be included in the dashboard. As of now, there is a total of four available areas where you can include your content. The first two areas are GLOBAL header and footer positions which show up on every page. The GLOBAL positions filename is”global_header.HTML.tt” and “global_footer.HTML.tt”. Then the other two are PAGE TEMPLATES header and footer positions which only show up in the named app. The PAGE TEMPLATES positions filename is “_page_header.HTML.tt” and “_page_header.HTML.tt”. With these content additions, you have the option to include plain text, HTML, CSS, and JS to extend your UI enhancement further.
var/cpanel/reseller/
global_header.html.tt
global_footer.html.tt
ftp_page_header.html.tt
ftp_page_footer.html.tt
To view the filenames on different page templates, visit documentation at Customize Content in Paper Lantern
<div style="background-color: #82b74c; color: #fff; font-weight: bold; padding: 15px; text-align: center;">Global Header Area</div>
<div style="background-color: #82b74c; color: #fff; font-weight: bold; padding: 15px; text-align: center;">Global Footer Area</div>
<div style="background-color: #82b74c; color: #fff; font-weight: bold; padding: 15px; text-align: center;">FTP Header Area</div>
<div style="background-color: #82b74c; color: #fff; font-weight: bold; padding: 15px; text-align: center;">FTP Footer Area</div>
Go to your cPanel dashboard and refresh your browser. You’ll notice all pages have global content and the FTP accounts page only include specific content for that page.
Icon
The default cPanel icons are there to help users quickly identify the tools they need, however, they may not complement your custom design or style. Before moving forward, ensure that your custom icons are no bigger than 48x48px, alpha-transparent (no background color) and that they are saved in png format.
var/cpanel/reseller/styled/My_Custom_Theme/
and create a folder name iconsssh reseller@server.example.net
password: <enter your password>
/usr/local/cpanel/bin/sprite_generator – theme paper_lantern – style My_Custom_Theme
(replace ssh login credential with your username/server name and My_Custom_Theme to your theme name)
Go to your cPanel dashboard and force-refresh your browser. You should see your new FTP accounts icon.
You can continue to design your icons and upload them all at once. When done, simply follow the steps above. It will generate the images and override the existing Paper Lantern icons.
The last step is to set your default style to your custom design. Simply go to User Preferences > Change Style > Set as Default
one of your custom designs. Once enabled, the new and existing hosting account will automatically see your new custom branded dashboard.
There you have it, folks! You now have the skills and knowledge to rebrand the cPanel dashboard your way. The possibilities are endless. Take control of your brand. There’s nothing but pure joy when it comes to creating your own identity and setting yourself apart from others.
Share your design in the comment section or on our forums. Below are a few examples of what you could do with your new branding skills and cPanel.
When creating your design style, it inherits all of the functionality and styling of Paper Lantern. This means Paper Lantern is your master template. Because Paper Lantern is constantly evolving and the code is frequently updated, your custom designs could potentially be affected. Visit our release site or subscribe to our mailing list so you can be notified of any changes that may affect your masterpiece.