• Resolved mbergsma

    (@mbergsma)


    I’ve tried to add my selfhosted fonts to my Chaplin child theme (The Kid ?? ).
    I tried it via functions.php:

    function the_kid_add_fonts() {
     
    wp_enqueue_style( 'the_kid-fonts', 'https://www.meneervanwoord.nl/wp-content/themes/assets/fonts/abezeh/stylesheet.css', false ); 
    }
     
    add_action( 'wp_enqueue_scripts', 'the_kid_add_fonts' );

    That didn’t work.
    Also @import in the childthemes css didn’t work.

    Does anyone know a solution?

    The page I need help with: [log in to see the link]

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

    (@anlino)

    Hi @mbergsma,

    The CSS file with the fonts is loaded correctly when I visit your website – you just need to set elements to use it.

    If you go to Appearance → Customize → Fonts, and set “Body Font” and “Headings Font” to either KrikikrakEDUTape or ABeZeh EDU, they should start appearing on your site. Verified on my development environment just to make sure.

    — Anders

    Thread Starter mbergsma

    (@mbergsma)

    Hello @anlino,

    That works great.

    thank you for another great theme!

    Martin

    Theme Author Anders Norén

    (@anlino)

    @mbergsma Awesome! Glad you like it.

    Let me know if you have any other questions or feedback!

    — Anders

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Use your selfhosted fonts’ is closed to new replies.