• Simple and nicely designed solution for custom Google web fonts. For me, it works out of the box, no errors.

    My only suggestion for the author would be to switch to wp_enqueue_style instead of @import in wp_head if that is possible.
    Reason for this is possible duplicate font loading and I dunno if HTTPS site would trow unsecured connection error if fonts are
    being pulled via css @import over HTTP. Also maybe an option to include extended characters set if one exists for chosen font.

    Something like this maybe?:

    $protocol = is_ssl() ? 'https' : 'http';
    $query_args = array(
        'family' => 'Open+Sans:400italic,700italic,300,400,600,700,800',
        'subset' => 'latin,latin-ext'
    );
    wp_enqueue_style( 'fonts', add_query_arg( $query_args, "$protocol://fonts.googleapis.com/css" ), array(), null );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Great Google web fonts manager.’ is closed to new replies.