Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Daniele De Santis

    (@danieledesantis)

    Hello,
    SSL/HTTPS is supported, if you are having any issues could you please provide more information and the url of your website?

    Thank you

    Thread Starter winmonaye

    (@winmonaye)

    Thank you for the quick reply.

    I am seeing the following mix error on console.

    Mixed Content: The page at 'https://www.sample.com/for-dev/' was loaded over HTTPS, but requested an insecure stylesheet 'http://www.sample.com/?display_custom_css=css'. This request has been blocked; the content must be served over HTTPS.

    but when I checked the source code

    <link rel='stylesheet' id='wp-add-custom-css-css' href='https://www.sample.com/?display_custom_css=css' type='text/css' media='all' />

    So, I guess, something wrong with the console…

    Hello,
    I had the same issues. My situation was similar. Although I have an SSL with a content delivery network CloudFlare. I dove into the php of the WP Add Custom CSS plugin. If you are able to do this, then this fix worked for me.

    Open the file in the plugin folder called “wordpress-add-custom-css.php” this should be in the main folder.

    Search for this function (It starts on line 290 and ends at 291)

    wp_register_style( 'wp-add-custom-css', $css_base_url . '?display_custom_css=css' );
    wp_enqueue_style( 'wp-add-custom-css' );

    and then change the value “$css_base_url” to your full base URL like this

    wp_register_style( 'wp-add-custom-css', 'https://www.sample.com/' . '?display_custom_css=css' );
    wp_enqueue_style( 'wp-add-custom-css' );

    This worked for me.

    keep in mind if this plugin ever updates this code will be updated again. This worked for me April 30, 2018.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘SSL/HTTPS Is not supported’ is closed to new replies.