Hello, it looks good to me, when I access your website via https I can see stylesheet loaded via https…
<link rel="stylesheet" href="https://www.ebusinessempires.com/wp-content/plugins/cmp-coming-soon-maintenance/themes/countdown/style.css?v=2.8" type="text/css" media="all
Alex
-
This reply was modified 5 years, 8 months ago by NiteoThemes.
Thread Starter
dimeco
(@dimeco)
That’s not the issue.
If a person just types in ebusinessempires.com – DOES NOT type in https first (many people don’t know to do that) – my site is set that everything SHOULD be SSL regardless.
Your stylesheet is NOT loading secure in that instance.
It needs to be fixed somewhere. Guess I’ll try to dive into your code.
Not really, when I type in just ebusinessempires.com
it automatically loads over https as expected.
To enqueue stylesheet, we use standard WordPress function plugin_dir_url()
which choose http or https automatically.
You can try to enforce it if you edit Countdown theme file under plugins dir
/cmp-coming-soon-maintenance/themes/countdown/countdown-theme.php
just look for this code:
<link rel="stylesheet" href="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . $themeslug.'/style.css?v='.CMP_VERSION;?>" type="text/css" media="all">
Ales
-
This reply was modified 5 years, 8 months ago by NiteoThemes.
Thread Starter
dimeco
(@dimeco)
<link rel=”stylesheet” href=”<?php echo plugin_dir_url( dirname( __FILE__ ) ) . $themeslug.’/style.css?v=’.$this->version;?>” type=”text/css” media=”all”>
There’s no way to add “https” in there.
How??
replace it with
<link rel="stylesheet" href="https://www.ebusinessempires.com/wp-content/plugins/cmp-coming-soon-maintenance/themes/countdown/style.css?v=2.8" type="text/css" media="all
Which is not recommended way to though.
I would recommend to force redirect http requests to https on nginx, apache or whatever www server you are using level..
Checked website again, and stylesheet is loaded correctly. closing ticket.