- This topic has 4 replies, 3 voices, and was last updated 6 years, 10 months ago by
Anonymous.
- AuthorPosts
- May 14, 2016 at 02:22 #8975
AnonymousInactiveHi 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
May 16, 2016 at 18:24 #8981
mila_supportMemberHi!
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.
May 16, 2016 at 18:28 #8982
mila_supportMemberI have updated my previous message. Please check it one more time.
May 17, 2016 at 09:37 #8984
AnonymousInactiveThanks 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.
May 17, 2016 at 14:42 #8988
AnonymousInactivePlease, provide us the direct link to your table. Thanks in advance.
- AuthorPosts
- You must be logged in to reply to this topic.