Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #221287

    The link to a font set that I uploaded through the iCon manager is showing up as insecure content on my SSL enabled site. I am already using the WP HTTPS plugin to force the site to SSL. But those links are still set with http.

    How can I fix that?

    Thanks

    Todd

    #221538

    Hey toddgeist!

    Please add this on functions.php:

    function fix_ssl_upload_url( $url ) {
    
    	if ( is_ssl() )
    		$url = str_replace( 'http://', 'https://', $url );
    	return $url;
    
    }
    add_filter( 'upload_dir', 'fix_ssl_upload_url' );

    Best regards,
    Ismael

    #221540

    Thank you !!!

    Works :-)

    Todd

    #221559

    Hey!

    Glad it works. :)

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Fonts loaded through the IconFont Manger are messing up ssl’ is closed to new replies.