I'm working on my own cPanel x3 theme. I've edited the stdheader.html file and have added this:

<link href="https://fonts.googleapis.com/css?family=Dosis|Roboto+Condensed|Vollkorn" rel="stylesheet" type="text/css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">

These are font families and font awesome. However, it just doesn't take. There are no errors in my Chrome console, but they also don't seem to be called. In others words that code is being ignored, and is not showing up in the source code. Can someone tell me why?

  • >> Can someone tell me why? - No, with this much information we can't. We need more. – William Edwards Jul 26 '14 at 19:45
  • @WilliamDavidEdwards there's nothing more to tell. – Xarcell Jul 26 '14 at 22:33
  • It's likely not reporting because there's nothing too report. You should ensure that all traces of the old 'font-family' is removed and replaced with the new... Also you should be able to get more of an idea whats going on by using firebug, inspect the element see what font is being called, and then check in the .net panel to see if Google's font is being downloaded, if not then you can download the font from Google and host locally. – Simon Hayter Jul 26 '14 at 22:41
  • @Xarcell You say >> it just doesn't take. - Can we take a look at your theme? Have you debugged your theme yet? – William Edwards Jul 27 '14 at 8:04

If the link is not showing in your source code (view the source via your browser to confirm this), then cPanel will be stripping the tag before it makes it to the screen, which is why your console will not show any errors.

My hunch would be that it is a security measure to prevent potential XSS issues. Security is going to be a major concern to cPanel, and I imagine bespoke styling far less so.

| improve this answer | |
  • I was gonna ask over at cpanel forums, but I can't login and there is no "forgot password" link. – Xarcell Jul 26 '14 at 22:34
  • @Xarcell There is... forums.cpanel.net/login.php?do=lostpw – William Edwards Jul 27 '14 at 8:04
  • It does seem as though they are being stripped out. I can see it in the source code when in the branding editor itself, but not when a user views cpanel. – Xarcell Jul 27 '14 at 23:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.