Google font not loading on mobile

Hi there.

I’ve tried various solutions for loading the Alex Bush font - in the Font Manager and with CSS import. Whereas it does load on desktop, it does not on mobile.

Please see the ‘signature’ which says ‘: - ) Mohocon’ on http://mohocon.com/about.

What to do? Thanks.

Hello @nblund,

Thanks for writing in! :slight_smile:

You just need to enqueue your google font before any plugin or your theme does it. You can do it by setting priority to 0 for your hook.

Simply add this code into the functions.php of your child theme:

add_filter( 'wp_enqueue_style', 'wpb_add_google_fonts', 0 );

function wpb_add_google_fonts() {
     wp_enqueue_style( 'wpb-google-fonts', https://fonts.googleapis.com/css?family=Alex+Brush', false ); 
}

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.