Installing an SSL Certificate on WordPress
1. Go to the WordPress admin panel, Settings - General section. In the “WordPress Address” and “Site Address” fields, replace “http://” at the beginning of the line with “https://”.
2. Go to the hosting control panel, section “SSL certificates” - “Let’s Encrypt”, fill in all the fields, get certificate.
3. Go to the hosting control panel, open wp-config.php through the file manager, after the line "define('DB_COLLATE', '');" add the following options:
define('FORCE_SSL_ADMIN', true);
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
$_SERVER['HTTPS'] = 'on';
4. Next, you should either manually edit the installed theme and all links in posts, replacing all http links with https, or install the plugin "WordPress HTTPS (SSL)" or "SSL Insecure Content Fixer, which will do these actions for you every time the page loads.