sirbrent

Well-Known Member
Sep 30, 2008
98
1
58
I have a question about creating a custom cpanel login theme. I have done this successfully in the past but now I am wanting to do something more advanced then just cloning the default and editing it. In particular I wish to use some PHP but I cannot seem to make this work.

In the past if I wanted to edit the template for the webmail system I would have to edit the files: header_webmaild.html, login_webmaild.html and potentially footer.html.

What I would prefer to do at this time, and seems necessary if I wish to use PHP, is create a separate page for each login type -- E.g., instead of cpanel building the login page from the three files (such as described above) to simply load "webmaillogin.php". Where is the current behavior of cPanel (building the login page from three segments) defined and can it be changed?
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
I have a question about creating a custom cpanel login theme. I have done this successfully in the past but now I am wanting to do something more advanced then just cloning the default and editing it. In particular I wish to use some PHP but I cannot seem to make this work.

In the past if I wanted to edit the template for the webmail system I would have to edit the files: header_webmaild.html, login_webmaild.html and potentially footer.html.

What I would prefer to do at this time, and seems necessary if I wish to use PHP, is create a separate page for each login type -- E.g., instead of cpanel building the login page from the three files (such as described above) to simply load "webmaillogin.php". Where is the current behavior of cPanel (building the login page from three segments) defined and can it be changed?
Unfortunately, for login themes, PHP cannot be used at this time.