WordPress.org

Forums

Displace
[resolved] Font is always included via http (2 posts)

  1. l-x
    Member
    Posted 1 year ago #

    If you run your blog on https IE and Firefox will show Warnings about unsecure contents on the site.

    Patch:

    diff --git a/functions.php b/functions.php
    index 60c655b..36d759a 100755
    --- a/functions.php
    +++ b/functions.php
    @@ -107,7 +107,7 @@ function displace_scripts() {
     	wp_enqueue_style( 'genericons', get_template_directory_uri() . '/fonts/genericons/genericons.css', array(), '3.0' );
    
     	// Add Roboto Slab font.
    -	wp_enqueue_style( 'roboto-slab', 'http://fonts.googleapis.com/css?family=Roboto+Slab:400,700,300&subset=latin,cyrillic', array(), null );
    +	wp_enqueue_style( 'roboto-slab', '://fonts.googleapis.com/css?family=Roboto+Slab:400,700,300&subset=latin,cyrillic', array(), null );
    
     	// Load main stylesheet.
     	wp_enqueue_style( 'displace-style', get_stylesheet_uri() );
  2. ak
    Member
    Theme Author

    Posted 1 year ago #

    I'll include this patch in the next update.

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic