Answer the question
In order to leave comments, you need to log in
Why is the WP admin displayed incorrectly after moving to https?
Goodnight!
Installed support for the SSL host certificate and styles, etc., are no longer displayed.
I specified // in the place of the site address in the database - the site started working normally.
But the admin panel is still crooked:
I don’t understand what could be the matter, I ask for help ...
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
add to config
$_SERVER['HTTPS'] = 'on';
define('FORCE_SSL_LOGIN', true);
define('FORCE_SSL_ADMIN', true);
add_filter('script_loader_src', 'metadone_script_loader_src', 20,2);
function metadone_script_loader_src($src, $handle) {
return preg_replace('/^(http|https):/', '', $src);
}
add_filter('style_loader_src', 'metadone_style_loader_src', 20,2);
function metadone_style_loader_src($src, $handle) {
return preg_replace('/^(http|https):/', '', $src);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question