• Resolved David Borrink

    (@davidborrink)


    I’ve installed the Frontier Buttons plug-in to get a font menu added to the visual editor. I’ve added some web fonts to the site, but those fonts don’t show up in the menu, even though I’ve declared them in my css…

    @font-face {
      font-family: 'Roboto';
      font-style: lighter;
      font-weight: 300;
      src: local('Roboto'), local('Roboto-Light'), url(fonts/Roboto-Light.ttf) format('truetype');
    }
    @font-face {
      font-family: 'Roboto';
      font-style: normal;
      font-weight: 400;
      src: local('Roboto'), local('Roboto-Regular'), url(fonts/Roboto-Regular.ttf) format('truetype');
    }
    @font-face {
      font-family: 'Roboto';
      font-style: bold;
      font-weight: 700;
      src: local('Roboto Bold'), local('Roboto-Bold'), url(fonts/Roboto-Bold.ttf) format('truetype');
    }

    Is this a function I can modify through the core functions? With a few searches in the Frontier Button code, I’m not coming across anything that clues me in on how the basic fonts are showing up in there.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author finnj

    (@finnj)

    Hi,

    How did you add the buttons to the site ?

    If you add the “Font select” button to a toolbar, the fonts installed to wordpress should show up under Font Family in the editor.

    I do not believe have “installed the fonts” to wordpress

    Thread Starter David Borrink

    (@davidborrink)

    I installed your plug-in and activated it. Then I added teh “font-family” button to the Standard Editor.

    I installed my fonts in the fonts folder in my theme, and referenced it in the CSS.

    Plugin Author finnj

    (@finnj)

    You need to install the font into wordpress, frontier buttons is only showing what is installed as Font Family

    Try and check this: https://learn.wpeditpro.com/adding-new-wordpress-tinymce-fonts/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add web fonts to the font menu from Frontier Buttons’ is closed to new replies.