WordPress.org

Support

Support » Plugins and Hacks » WooCommerce » [Resolved] Get HTTPS to be default for css/fonts/images

[Resolved] Get HTTPS to be default for css/fonts/images

Viewing 3 replies - 1 through 3 (of 3 total)
  • i added <link href=’https://fonts.googleapis.com/css?family=Varela+Round’ rel=’stylesheet’ type=’text/css’>
    to the header in header.php but i know this is a shoddy fix.

    I want to know where and how these urls are called in. this is terribly frustrating.

    I’d suggest just using the Force SSL option of WooCommerce and dropping any other HTTPS forcing plugins. Then you would want to enable Unforce SSL as well because SSL on at all times isn’t that great for performance 😉

    When in SSL WordPress will automatically make all properly enqueued assets load via HTTPS, if your google font is loading over HTTP instead you may have it hard coded instead of enqueued.

    Hey Patrick!
    Thanks so much for the suggestions, and you’re right – it should have worked with the forcing, but it would break the styles etc. I used every which setting set up possible and none of them solved the problem. If I could have found where the dynamic code was generated and alter it, i would have done that, but for my skill level: wordpress plus my theme plus my woocommerce plugin means so much dynamic stuff that I was unable to find it. Probably the combination of developing the site pre-ssl plus having a shared host on networksolutions was the issue that made all the logical solutions such as your suggestion fail.

    Overnight I found this solution and it’s solved all my problems – A this plugin http://snippets.webaware.com.au/snippets/wordpress-is_ssl-doesnt-work-behind-some-load-balancers/
    The problem was actually this function is_ssl(), and this plugin did the trick.
    Go team! thanks again!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Get HTTPS to be default for css/fonts/images’ is closed to new replies.
Skip to toolbar