Adding a Font

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #8975

    Anonymous
    Inactive

    Hi there,

    I was looking at adding the font for my companies branding into the pricing tables and just wanted to know if there was an easy way to do this.

    I am guessing it is in the /Users/calumgreen/Desktop/WhistlerPhotoWalks/pricing-table-by-supsystic/js/tinymce/plugins/ptsfontselect

    But unsure how to add it as I have the .otf file that I want to use.

    Kind Regards

    #8981

    Hi!
    At first you need to upload this font in root directory of your site – simply create “fonts” folder in root directory and upload there the font file.
    Then go to pricing table settings -> css editor -> and add this code –

    /* initialize a font */
    @font-face {
      font-family: Pompadur; /* Name of font */
      src: url(http://{{MySiteName}}/fonts/{{FontFileName}}.ttf); /* Path to a font */
    }
    /* set a font to table */
    #{{table.view_id}} {
      font-family: Pompadur;
    }

    where –
    http://{{MySiteName}}/fonts/{{FontFileName}}.ttf – is the url to your font file.

    Please try it.

    #8982

    I have updated my previous message. Please check it one more time.

    #8984

    Anonymous
    Inactive

    Thanks for the response. Its strange it loads my font but then a split second late it overwrites it with the open sans.

    Copied the CSS code for the specific element and it looks like this it appears that the style attribute is overwriting the font-family as if I turn off the style attribute it then goes back, is there a way that I can get it to not go to open sans?

    Style Attribute {
        font-family: 'Open Sans';
        width: 100%;
    }
    #ptsBlock_758787 {
        font-family: Gotham;
    }
    #ptsBlock_758787 {
        font-family: Gotham;
    }

    Really appreciate your help.

    #8988

    Anonymous
    Inactive

    Please, provide us the direct link to your table. Thanks in advance.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Thanks so much! Please Enter Your Info Below To Get PRO Discount and Gifts