{"id":1292,"date":"2019-12-24T11:52:02","date_gmt":"2019-12-24T11:52:02","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2019\/12\/24\/3592520-how-to-fix-the-mixed-content-error-on-wordpress-at-hostinger\/"},"modified":"2026-05-08T13:02:48","modified_gmt":"2026-05-08T13:02:48","slug":"3592520-how-to-fix-the-mixed-content-error-on-wordpress-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/3592520-how-to-fix-the-mixed-content-error-on-wordpress-at-hostinger\/","title":{"rendered":"How to Fix the Mixed Content Error on WordPress at Hostinger"},"content":{"rendered":"<p class=\"no-margin\">After <a href=\"\/support\/1583258-how-to-install-my-lifetime-ssl-at-hostinger\" target=\"_blank\" class=\"intercom-content-link\">installing an SSL certificate<\/a> and <a href=\"\/support\/1583201-how-can-i-redirect-my-http-site-to-https\" target=\"_blank\" class=\"intercom-content-link\">forcing the HTTPS protocol<\/a>, your website may display a &ldquo;Not secure&rdquo; warning next to the domain in the URL bar:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/12\/cbba03d1-966f-4a65-810f-def1b37828ea.jpg\" alt=\"Browser security warning popup saying the site is not secure and not to enter sensitive information\" data-media-id=\"4916\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">In addition, certain elements on your website may not function properly or fail to load. This is usually due to a <b>mixed content<\/b> issue, meaning that some images or other content on your website are loading with HTTP instead of HTTPS. <\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">To fix it, update all the links on your page to HTTPS. If you use the <b>Elementor <\/b>plugin, go to <b>Elementor <\/b>&rarr; <b>Tools<\/b> &rarr; <b>Replace URL<\/b>, and insert your domain address with HTTP and HTTPS: <\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/12\/c0bd0061-1e9a-4db2-8578-d2ee42ab2eaa.jpg\" alt=\"Elementor Tools &gt; Replace URL tab with old and new site address fields highlighted\" data-media-id=\"4919\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Next, save the changes and reload your website &mdash; the mixed content issue should be resolved. <\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">For WordPress websites not using Elementor, check the options below &#128071;  <\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_0f398b6e4b\">Option 1 &mdash; Use the Really Simple SSL Plugin<\/h2><p class=\"no-margin\">Log in to your WordPress admin area and click on <b>Plugins <\/b>&rarr;<b> Add New<\/b>:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/12\/04042542-e696-4c01-b0ad-339934a133a0.jpg\" alt=\"WordPress admin menu showing Add New highlighted in the Plugins section\" data-media-id=\"4918\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Install and activate the <b><a href=\"https:\/\/wordpress.org\/plugins\/really-simple-ssl\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Really Simple SSL<\/a> <\/b>plugin. Next, go to <b>Settings<\/b> &rarr; <b>General<\/b>:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/12\/48b6604c-c2cd-4460-9a09-d4a7445f58b3.jpg\" alt=\"WordPress Settings menu with the General option highlighted by a red arrow\" data-media-id=\"4920\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Make sure your website URLs include <b>https:\/\/<\/b><\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/12\/90e12d92-8eb9-4fb0-b858-a1bbfa6619fb.jpg\" alt=\"WordPress URL field with https:\/\/domain.tld highlighted above Site Address URL field\" data-media-id=\"4921\"><\/div><p class=\"no-margin\">\n<\/p><h2 id=\"h_596a7360f6\">Option 2 &mdash; Use the Better Search &amp; Replace Plugin<\/h2><p class=\"no-margin\">Install the <b><a href=\"https:\/\/wordpress.org\/plugins\/better-search-replace\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Better Search &amp; Replace<\/a> <\/b>plugin, then go to <b>Tools <\/b>&rarr;<b> Better Search Replace<\/b>. <\/p><ul>\n<li>\n<p class=\"no-margin\">In the <b>Search for<\/b> field, enter the domain name starting with <b>http:\/\/<\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">In the <b>Replace with<\/b> field, enter the domain name starting with <b>https:\/\/<\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Select<\/b> all the tables, <b>remove the checkmark <\/b>next to <b>Run as dry run? <\/b>(if any), and click on <b>Run Search\/Replace<\/b>:<\/p>\n<\/li>\n<\/ul><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/12\/79197e16-0302-4757-adbd-9f5678447071.jpg\" alt=\"WordPress Better Search Replace tool with Tools menu, search\/replace fields, and Run Search\/Replace button highlighted\" data-media-id=\"4923\"><\/div><p class=\"no-margin\">\n<\/p><h2 id=\"h_7575fca448\">Option 3 &mdash; Add Code to the .htaccess File<\/h2><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">This option is <b>not recommended<\/b> if your website uses <b>symlinks <\/b>&#128161; <\/p>\n<\/div><p class=\"no-margin\">If the mixed content issue persists after trying the previous methods, open your <b>public_html\/.htaccess<\/b> file (or <b><a href=\"\/support\/1583307-how-to-create-an-htaccess-file\" target=\"_blank\" class=\"intercom-content-link\">create it<\/a><\/b> if non-existent) and insert the code below: <\/p><pre><code>Header always set Content-Security-Policy: upgrade-insecure-requests<\/code><\/pre><p class=\"no-margin\">Save the changes and reload your site &mdash; it should be loading properly with HTTPS. If you&rsquo;re still having the same issues, try following this more <a href=\"https:\/\/www.hostinger.com\/tutorials\/fix-mixed-content-wordpress\" target=\"_blank\" class=\"intercom-content-link\">detailed guide<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>All about mixed content issues and how to fix them on WordPress<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[214],"tags":[],"class_list":["post-1292","post","type-post","status-publish","format-standard","hentry","category-mixed-content"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/3592520-how-to-fix-the-mixed-content-error-on-wordpress-at-hostinger\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/3592520-como-corregir-el-error-de-contenido-mixto-en-wordpress-en-hostinger\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/3592520-comment-corriger-l-erreur-de-contenu-mixte-dans-wordpress-chez-hostinger\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/3592520-bagimana-cara-memperbaiki-konten-campuran-di-wordpress-di-hostinger\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/3592520-como-corrigir-o-erro-de-conteudo-misto-no-wordpress\/","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/3592520-----\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1292"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1292\/revisions"}],"predecessor-version":[{"id":4926,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1292\/revisions\/4926"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}