Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Fonts and @font-face for cPanel theme?

Discussion in 'User Experience' started by RyanHavoc, Jul 25, 2012.

  1. RyanHavoc

    RyanHavoc Registered

    Joined:
    Jul 25, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    I've trying to include a font via @font-face in my cPanel theme. I've uploaded the font files along with my theme files but the font's don't load and when visiting the URL for the a font file itself I get:

    HTTP error 401 - Invalid security token

    Is there any way to include font's within your cPanel theme?

    Thanks

    Ryan
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,479
    Likes Received:
    421
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You've created your own Branded Style, correct? In the Branding Editor you'll see a button to Edit this Style. From there I think you'd go to Edit Stylesheet and add your code there, in that new style you created.

    You wouldn't be uploading font files themselves though I don't think.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. RyanHavoc

    RyanHavoc Registered

    Joined:
    Jul 25, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Yes, I've edited the CSS through the Branding Editor. But I need to put the font files somewhere for the CSS to link to them?

    My concern with referencing external font files is the error it throws up with SSL...
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,479
    Likes Received:
    421
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. RyanHavoc

    RyanHavoc Registered

    Joined:
    Jul 25, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hmm... I'll give it a go and let you know.
     
  6. RyanHavoc

    RyanHavoc Registered

    Joined:
    Jul 25, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Yep. That's worked. Cheers mate.
     
  7. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,479
    Likes Received:
    421
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Great news then! :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice