SSL green lock only when i am logged in as admin wordpress



i am using cloudflare on my wordpress website.
but https work and get green lock only when i am logged in as admin.

it becomes grey as i logout.
please help resolve the issue.



In your Wordpress general settings, do you specify https for your site URL? On my sites, I have this set in my wp-config file:
define(‘WP_SITEURL’, ‘’);
define(‘WP_HOME’, ‘’);

To me, it sounds like you have wp-config set to enforce SSL for admin, but the site itself is not configured for https:
define(‘FORCE_SSL_ADMIN’, true);


Thanks for your support sdayman. Problem has been resolved, by deactivating cloudflare flexible ssl plugin and activating wordpress https plugin.