Make sure your Site Address (URL) is HTTPS
To make your entire website secure, you simply need to change your site url to use HTTPS instead of HTTP
Via admin go to settings>general
Site Address (URL): ‘https://example.com’
or Read this to change it via wp-config.php how to change the site url