Https problem - by matanbo - on WordPress WooCommerce support

This topic has 4 replies, 3 voices, and was last updated 9 years, 3 months ago ago by Eva Kemp

  • Avatar: matanbo
    matanbo
    Participant
    September 14, 2015 at 04:57

    i have a few problem in the site when i go to https mode

    i create the checkout page (https://kustom-tees.com/checkout/) as https

    but i get some issues:

    * i don’t know what is this smile font and where it come from ????
    – Mixed Content: The page at ‘https://kustom-tees.com/checkout/’ was loaded over HTTPS, but requested an insecure stylesheet ‘http://kustom-tees.com/wp-content/uploads/smile_fonts/Defaults/Defaults.css’. This request has been blocked; the content must be served over HTTPS.

    * i don’t know how to repllace the logo in the theme to https and not http….

    – kustom-tees.com/:502 Mixed Content: The page at ‘https://kustom-tees.com/checkout/’ was loaded over HTTPS, but requested an insecure image ‘http://kustom-tees.com/wp-content/uploads/2015/08/logo.png’. This content should also be served over HTTPS.

    – kustom-tees.com/:503 Mixed Content: The page at ‘https://kustom-tees.com/checkout/’ was loaded over HTTPS, but requested an insecure image ‘http://kustom-tees.com/wp-content/uploads/2015/08/logo.png’. This content should also be served over HTTPS.

    please i need help

    3 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    September 14, 2015 at 16:18

    Hello,

    To change url for logo image you need edit the file wp-content/themes/classico/framework/theme-functions.php in lines 178, 179 and change the code <?php echo $logo_src; ?> and <?php echo $logo_fixed_src; ?> to https://kustom-tees.com/wp-content/uploads/2015/08/logo.png.

    Best regards,
    Jack Richardson.

    Avatar: matanbo
    matanbo
    Participant
    September 14, 2015 at 21:59

    why you didn’t put a php line before like that in your last theme update?

    <?php
    if (isset($_SERVER[‘HTTPS’]) && $_SERVER[‘HTTPS’] == ‘on’) {
    $logo_src = str_replace(“http://&#8221;, “https://&#8221;, $logo_src);
    $logo_fixed_src = str_replace(“http://&#8221;, “https://&#8221;, $logo_fixed_src);
    }
    ?>

    it is really weird that you need to make it absolute link

    tnx

    Avatar: Eva
    Eva Kemp
    Support staff
    September 17, 2015 at 13:09

    Hello,

    From theme version 1.1 we’ve been using this code:

    <img src="<?php echo $logo_src; ?>" alt="<?php bloginfo( 'description' ); ?>" <?php echo $logo_imagesize[3]; ?> class="logo-default" />
    <img src="<?php echo $logo_fixed_src; ?>" alt="<?php bloginfo( 'description' ); ?>" <?php echo $logo_fixed_imagesize[3]; ?> class="logo-fixed" />

    Please clarify in what file you saw that code.

    Thank you.
    Regards,
    Eva Kemp.

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.