Okay
  Public Ticket #1257509
Where are external stylesheets defined?
Closed

Comments

  • BlindPenguin started the conversation

    Hi there,

    my site is delivered via https, but one of the external stylesheets for the font seems to be via unsecure connection. 

    The error:

    Mixed Content: The page at 'https://aurosis.de/de/warenkorb?action=show' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/css?family=Poppins:400,700;subset=latin,latin-ext'. This request has been blocked; the content must be served over HTTPS.

    So where can i find the definition for that font style?

    Thank you.

  •  22
    Naik replied

    Hi BlindPenguin,

    Please open your file: root/modules/laethemecustomizer/laethemecustomizer.php line 2309

    Replace this code:

    $importCode = 'http://fonts.googleapis.com/css?family='.$googleFontName;
    

    with

                    if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on')
                        $importCode = 'https://fonts.googleapis.com/css?family='.$googleFontName;
                    else
                        $importCode = 'http://fonts.googleapis.com/css?family='.$googleFontName;

    Thank you!

    Best regards,

    Naik - Lightatend Team 

     A good review and positive comment would help us to keep doing what we do best Rate now

  • BlindPenguin replied

    Nice. It works, thank you very much. :)

  •  22
    Naik replied

    You're welcome!

    Please let us know if we can be of further assistance.

    If you're happy with the theme and support you received we would really appreciate it if you could leave us a good review and positive comment over on themeforest.

    It only takes a moment and really helps us to keep doing what we do best :)

    Just go to http://themeforest.net/downloads and click "Rate this item" under your theme.

    Many thanks in advanced!

    Best regards,

    Naik - Lightatend Team 

     A good review and positive comment would help us to keep doing what we do best Rate now