The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    14,477
    Likes Received:
    202
    Trophy Points:
    63
    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.
     
  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:
    14,477
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  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:
    14,477
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Great news then! :)
     

Share This Page