Mobile app version of vmapp.org
Login or Join
Berryessa370

: Why Can't I Add Google Font Families In cPanel Branding Editor? 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|Robo

@Berryessa370

Posted in: #Cpanel #Theme

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Berryessa370

1 Comments

Sorted by latest first Latest Oldest Best

 

@Kevin317

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme