Support » Theme: Björk » Use different Fonts (FontFace Method)

Viewing 9 replies - 1 through 9 (of 9 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @unusualroutine,

    You can find instructions on how to do this with block themes here: https://learn.wordpress.org/tutorial/manage-your-block-theme-fonts-with-create-block-theme/

    — Anders

    Thread Starter unusualroutine

    (@unusualroutine)

    Anders,

    I would love to implement those fonts without any additional plugins.

    If I look into other themes (twenty twentytwo for example) then I will see other fonts too choose from in the drop down menu in the backend/customizer (the files for those selectable fonts are in the assets/fonts subfolder of the theme.

    I already put the fonts I want to use into the subfolder of the björk theme (assets/fonts) and added the css snippet but they won‘t show up in the Backends font dropdown menu…

    https://justcreative.com/how-to-use-custom-fonts-with-font-face-on-wordpress/

    the link above is the method I tried using to implement my oen fonts in combination with this site to create the css:

    https://gwfh.mranftl.com/fonts/nunito?subsets=latin

    I added this snippet to the functions.php but the new font won‘t show up:

    # Generate typography defaultfont

    add_filter( 'generate_typography_default_fonts','tu_add_system_fonts');

    functiontu_add_system_fonts( $fonts) {

        $fonts[] = 'Roboto';

        return$fonts;

    }

    Any to make them appear are greatly appreciated,

    thanks, Benjamin

    Theme Author Anders Norén

    (@anlino)

    Hi @unusualroutine,

    Keep in mind that any changes you make directly to the Björk folder (like adding fonts or modifying the CSS) will be overwritten the next time Björk is updated, so you’ll be better off making those changes in a child theme.

    This response is for the Beaumont theme, but the process is exactly the same: https://wordpress.org/support/topic/custom-fonts-31/

    — Anders

    Thread Starter unusualroutine

    (@unusualroutine)

    Thank you so much for your quick Reply, I will try creating a Child Theme soon.

    Thread Starter unusualroutine

    (@unusualroutine)

    I created a Child-Theme today – unfortunately after activation it looks like an unchanged Standard Björk theme not Reflecting all the Changes I already made to the parent theme.

    I tried “Customiser Import/Export” Plugin and tried to export the changes I Made in the parent theme and import them in the child theme, but nothing actually changes.

    Trying in a different browser (Chrome) did not help.

    Thank you in Advance,

    Benjamin

    Theme Author Anders Norén

    (@anlino)

    Hi @unusualroutine,

    It’s possible WordPress won’t retain the settings you’ve made when Björk is active when you switch to a child theme. I haven’t tried this, so I can’t say for sure.

    The Customizer Import/Export plugin you mention is likely for the Customizer used by Classic Themes and not the Site Editor, so that won’t help much. If you switch back to Björk again, you should get the styles you set originally back.

    My recommended route would still be to install the Create Block Theme plugin, since it’s an official plugin built for this purpose.

    — Anders

    Thread Starter unusualroutine

    (@unusualroutine)

    Thanks again for your quick reply.

    I just installed the Block theme plugin.

    So if I understand this right – you recommend installing all the fonts using the block plugin and then create a child theme or is the child theme Thing unnecessary when using the block theme?

    Benjamin

    Theme Author Anders Norén

    (@anlino)

    @unusualroutine You can create a child theme if you want to, but if you have the plugin installed, you don’t need to do it in order to add new fonts.

    Thread Starter unusualroutine

    (@unusualroutine)

    a sweet – thank you so much. I won’t be using a child theme then for now.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Use different Fonts (FontFace Method)’ is closed to new replies.