Reputation: 527
We set up ssl on our blog, and have changed the site and homeurl settings from http to https in Admin, but it seems this only affected wordpress content(uploads) folder, links to the theme's and plugin's stylesheets still reference http instead of https, as a result the site is messed up, I've looked into the theme's header file, but found nothing to change there. How do I rectify this. Thank you.
Upvotes: 0
Views: 43
Reputation: 1062
Wordpress generates full absolute links for media you add via the editor because everything else would assume things about the location of the website (you can't use relative URLs because the blog might be at a subpath and historically the path itself is never saved)
Better Search Replace might be what you're looking for. It allows you to replace certain phrases in database tables. You should make absolutely sure to not do a search-replace for http
-> https
since links that are already https
will end up as httpss
. Instead try searching for http://
and replacing https://
.
You should also consider setting up HSTS.
Upvotes: 1