WordPress.org

Forums

Skirmish
HTTP-Schema independent URI (1 post)

  1. trinet
    Member
    Posted 2 years ago #

    I've got a small improvment suggestion:

    in functions.php change the link to googleapis to a schema-independent version, like

    wp_enqueue_style( 'fonts', '//fonts.googleapis.com/css?family=Lusitana|Droid+Sans' );

    or

    $schema = (is_ssl() == TRUE) ? 'https' : 'http';
    wp_enqueue_style( 'fonts', $schema.'://fonts.googleapis.com/css?family=Lusitana|Droid+Sans' );

    That way it won't break the site encryption and prevent error messages that the site is only partly encrypted.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.