Adding custom fonts

This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!

Status: not resolved

Tagged: 

  • This topic has 3 replies, 2 voices, and was last updated 9 mo, 2 w by  Jacob.
Viewing 3 reply threads
  • Author
    Posts
    • #18033

      dkesov
      Member

      Hi Jacob,
      I need to add custom fonts that are not part of the pre-installed and these from Google Fonts plugin.

      Here is what I do:
      1. Uploading the font files into /public_html/wp-content/themes/newsbeat-child/plovdiv
      2. Add following code in the style.css, but without success:
      —————-
      @font-face {
      font-family: ‘plovdiv’;
      src: url(‘wp-content/themes/newsbeat-child/plovdiv/PlovdivDisplay-Regular.otf’);
      src: url(‘wp-content/themes/newsbeat-child/plovdiv/PlovdivDisplay-Bold.otf’);
      src: url(‘wp-content/themes/newsbeat-child/plovdiv/PlovdivDisplay-Light.otf’);
      src: url(‘wp-content/themes/newsbeat-child/plovdiv/PlovdivMainaMode.otf’);
      src: url(‘wp-content/themes/newsbeat-child/plovdiv/PlovdivPictograms.otf’);
      src: url(‘wp-content/themes/newsbeat-child/plovdiv/PlovdivSans.otf’);
      src: url(‘wp-content/themes/newsbeat-child/plovdiv/PlovdivScript.otf’);

      font-weight: normal;
      font-style: normal; }

      p {
      font-family: ‘plovdiv’ !important;
      }

      h1, h2, h3, h4, h5, h6 {
      font-family: ‘plovdiv’ !important;
      }
      —————-
      3. Place the same code in Appearance > Style > Custom CSS

      The font I need is not loaded.

      Is there something I missed or do it wrong, so not to see the font family in the Typography?
      Thanks!

    • #18034

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #18035

      dkesov
      Member

      Thanks Jacob,

      Now I’m able to see the font in the Customizer only when I add the code in the Custom CSS field. When I save the code in style.css it does not work.

      After I apply the config, I don’t see the font I need, but just some regular one.

      Regards!

    • #18036

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

Viewing 3 reply threads
  • You must be logged in to reply to this topic.

This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!

© Copyright 2020 by wpthms.com. All Rights Reserved.