Okay
  Public Ticket #1382640
Google fonts
Closed

Comments

  • entyy started the conversation

    Hi, 

    I noticed there are some Google Fonts missing from the dropdown lists of available fonts in the Typography tab (General HTML elements). 

    Specifically I need this one

    https://fonts.google.com/specimen/Spectral?selection.family=Spectral:700

    So I tried to embed the font manually (not link it). 

    I uploaded font files to my server and pasted this code into the Custom CSS input field:

    @font-face {
    font-family: 'spectral';
    src: url('wp-content/themes/salient/fonts/spectral-bold.eot?#iefix') format('embedded-opentype'), 
         url('wp-content/themes/salient/fonts/spectral-bold.woff') format('woff'), 
         url('wp-content/themes/salient/fonts/spectral-bold.ttf')  format('truetype'),
    }


    It doesn't work, however. Dropdowns in the Typography tab don't feature the spectral font.

    Links to font files are ok, e.g. 

    http://jakubkasprzak.pl/wp-content/themes/salient/fonts/spectral-bold.ttf

    What am I doing wrong?

  •  9,016
    Tahir replied

    Hey,

    Please have a look at this Article :Add a Custom Font.

    Be.st


    ThemeNectar Support Team 

  • entyy replied

    Hi Tahir,

    yeah I followed the last tutorial (@fontface) but can't get it working.

    Having uploaded the font files and added the custom CSS the new font should be visible in the Typography dropdown menu. It's not there, though.

  •  9,016
    Tahir replied

    Hey Again,

    I am seeing a JS error that is likely causing the Font to not load: http://prntscr.com/hgpuut . Also try adding the snippet using the "Code Snippet" Plugin . 

    Could you allow us to log in to your website backend dashboard so we can check on this for you more?. We are gonna need the username and password of admin user as well as the login url.

    B.est 


    ThemeNectar Support Team 

  •   entyy replied privately
  •   entyy replied privately
  •  9,016
    Tahir replied

    You dont seem to have followed this article correctly . Just added in the code and its appearing now : http://prntscr.com/hha1mk . 

    Be.st


    ThemeNectar Support Team