WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. l-x
    Member
    Posted 9 months 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 8 months ago #

    I'll include this patch in the next update.

    Thanks!

Reply

You must log in to post.

About this Theme

About this Topic