Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Så här fixar du error med blandat content i WordPress (Step-by-Step)

Ser du error med blandat content i WordPress?

Mixed content error i WordPress orsakas av felaktiga HTTPS/SSL Settings. Ofta påverkar det inte din websites funktionalitet, men det kan ha negativa effekter på din websites sökmotorsoptimering och användarupplevelse.

I den här artikeln kommer vi att visa dig hur du fixar mixed content error i WordPress.

How to fix the mixed content error in WordPress

Vad är mixed content error i WordPress?

Mixed content error uppstår när din WordPress website är tänkt att vara säker (med HTTPS/SSL), men den fortfarande serverar vissa saker, gillar images eller skript, med en osäker anslutning (HTTP).

Attlägga till SSL och HTTPS i WordPress är viktigt eftersom det krypterar informationen som går mellan din website och människors webbläsare, vilket gör det svårare för hackare att få tag på personlig information. Google föredrar också säkra webbplatser för search ranking.

Alla de bästa webbhotellen för WordPress erbjuder gratis SSL som en del av sina paket. Om ditt hosting provider inte erbjuder det, kan du få gratis SSL genom Let’s Encryption för din WordPress site.

Om din SSL är rätt inställd kommer du att se ett litet grönt hänglås i adressfältet, vilket visar att det är säkert.

Secure content sign

Men om ej, kan du se ett trasigt hänglås och ett message som säger att din anslutning inte är helt säker.

Like so:

Not fully secure due to mixed content

Du kan hitta error i mixed content genom att använda verktyget Inspect.

Error med blandat content kommer att visas som en varning i konsolen med details för varje objekt med blandat content.

Mixed content displayed in developer tools

Om du inte fixar error med blandat content kan det göra din site mer utsatt för hackning och få besökare att inte lita på ditt varumärke. Dessutom kan det göra att din site blir svårare att hitta i sökresultaten.

Med detta sagt, låt oss ta en titt på hur man enkelt fixar varningen för blandat content i WordPress.

Fixa error med blandat content i WordPress

Det enklaste sättet att fixa mixed content error i WordPress är genom att använda tillägget SSL Insecure Content Fixer. Detta plugin erbjuder olika nivåer för att fixa error, så du kan välja den som passar din website bäst.

Installera först pluginet i admin area på din WordPress. För mer detaljer, se vår Step-by-Step guide om hur du installerar ett WordPress plugin.

Efter aktivering måste du besöka Settings ” SSL Insecure Content page från din WordPress admin sidebar för att konfigurera plugin-inställningarna.

SSL secure content plugin settings

Detta plugin ger olika nivåer för att fixa varningar för blandat content. Vi kommer att förklara var och en av dem, vad de gör och vilken som är bäst för you.

1. Enkel

Detta är den snabbaste och mest rekommenderade nivån för alla användare som är Beginnare. Den kan automatiskt lösa mixed content error i WordPress för skript, stylesheets och images i WordPress mediabibliotek.

2. Innehåll

Om nivån Simple inte fixar varningarna för blandat innehåll i WordPress, bör du prova inställningen Content. Den kommer att använda alla funktioner i Simple, tillsammans med kontroller för fixar i WordPress content och text widgets.

3. Widgetar

Denna nivå omfattar alla fixar som tillämpats i nivån Content, plus en ytterligare fix för resurser som hämtas i WordPress widgetar på din website.

4. Genomföra

Den här metoden genomför allt på varje page på din website, från header till footer, och ersätter alla URL:er med HTTPS. Den är långsammare och kan påverka prestandan på din WordPress website.

5. Genomför all

När alla ovanstående nivåer inte lyckas fixa varningarna för blandat content i WordPress, kan du prova den här inställningen. Den försöker fixa allt som kan leda till oväntade beteenden på din website. Det kommer också att ha den mest negativa inverkan på utförandet.

När du har valt en nivå för fix av content kan du gå ner på sidan och hitta section ”Fixes for specific plugins and themes”.

Om du använder de tillägg eller teman för WordPress som anges i detta section kan du kontrollera boxarna här. Detta kommer att säkerställa att det content som stöds av dessa tillägg inte har varningar för osäkert innehåll.

Om din website innehåller länkar eller resurser som är hosted på externa webbplatser (eller ej din egen) kan du aktivera inställningen ”Only fix content pointing to this WordPress site”.

Detta kommer att förhindra att plugin försöker ändra dessa länkar till HTTPS.

SSL Insecure Content plugin settings for specific plugins, themes, and external sites

Låt oss nu rulla ner till ”HTTPS detection” section.

Här kan du välja hur HTTPS-content ska upptäckas på din website.

HTTPS detect

Standardalternativet är att använda en standardfunktion i WordPress, vilket fungerar för de flesta websites.

Under det hittar du andra alternativ som är användbara om du använder Cloudflare CDN, en Nginx web server, och mer.

Gå vidare och välj den metod som du tror är tillämplig på din website, beroende på din vissa inställning.

Glöm inte att klicka på knappen ”Save Changes” för att lagra dina inställningar.

You can now visit your website to see if this has resolved insecure content issues on your website. Se till att du clearar din WordPress-cache innan du kontrollerar din website.

Om mixed content error i WordPress inte är fixat, måste du gå tillbaka till pluginets inställningar page och justera fixnivåerna igen.

Ser du fortfarande error med blandat content? Du kan behöva kontrollera din site för andra SSL-relaterade problem. Vi rekommenderar att du kontrollerar vår artikel om hur man fixar de vanligaste SSL issues för WordPress Beginnare.

Learn More sätt att lösa vanliga error i WordPress

Ser du andra typer av error på din website i WordPress? Oroa dig inte, här är några guider som du kan kontrollera:

Vi hoppas att den här artikeln hjälpte dig att lära dig hur du fixar error med blandat content i WordPress. Du kanske också vill lära dig hur du får ett gratis SSL-certifikat för din website och våra tips om hur du fixar ”ERR_SSL_VERSION_OR _CIPHER_MISMATCH” i WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Avslöjande: Vårt innehåll stöds av våra läsare. Det innebär att om du klickar på några av våra länkar, kan vi tjäna en provision. Se hur WPBeginner finansieras, varför det är viktigt, och hur du kan stödja oss. Här är vår editoriala process.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Den ultimata WordPress-verktygslådan

Få GRATIS tillgång till vår verktygslåda - en samling WordPress-relaterade produkter och resurser som varje professionell användare bör ha!

Reader Interactions

47 kommentarerLämna ett svar

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Mrteesurez says

    The plugin is simple and worked out of the box. Apart from Google preference on SSL, A site with SSL issue will be regarded as non secured and users will be skeptical to enter their details or order products on the site, this will hamper user’s trust.
    That is why all issues related to SSL including mixed content error required serious concern to get it solved as soon as possible.

  3. Blue says

    I had to select the ”capture all” option, but it fixed the mixed content issue I was having with my dropdown menu! Thank you!

  4. Tiya says

    My site is AdSense approved. If I use it to fix my mixed content issue. Will it affect my ads?
    Please solve my query.

  5. Nilla says

    Installed the SSL Insecure Content Fixer and ran Simple option, which cleared everything in Chrome for my test site. Installed the plugin on the live (identical) site but only cleared certain pages.

    • WPBeginner Support says

      You would want to clear any caching and resave your permalinks for the most common solutions but you would want to reach out to the plugin’s support for assistance

      Administratör

  6. theinformativo says

    Thanks a lot, for the help, I was stuck with the mixed content issue but after this method, everything got fixed thanks a lot.

  7. Alex says

    Thank you Capture Helped me solve the issue. But i am wondering if there is any way to make the site’s Performance improved. Thanks

    • WPBeginner Support says

      You may want to ensure the plugin is installed and activated and you are an admin user of your site for the most common reasons

      Administratör

    • WPBeginner Support says

      It would depend on what file is causing the error, if it is a theme file you would likely need to reach out to your theme’s support for fixing the file.

      Administratör

  8. James Haselhofer says

    What happens when you want to display insecure links on your secure site but the SSL certificate is preventing them from showing?

    I want to include links to California’s Caltrans traffic cams on my site but since they’re insecure, they show up on the backend. No mixed content warnings, it just won’t show them on the front end.

    I can’t just call the state of California and tell them to add security to their traffic cam links, so is there any fix for this?

    • WPBeginner Support says

      You could use a URL shortener such as Bitly to link to the HTTP link through an HTTPS shortened link

      Administratör

  9. Herman says

    The plugin didn’t work with simple option but did with content option. How do I identify and fix the files or should I just leave as is? If so, does the plugin cause slower loading times?

  10. Harmeet Singh says

    Thanks,
    It solved my mixed content problem when I have selected the
    setting ”Capture” in the SSL Insecure Content plugin. So do
    I leave it as it is or do I change it back to simple.

    Regards

    • WPBeginner Support says

      You would go back to the default once you fixed the files that were causing the issue.

      Administratör

  11. Ana says

    Hey, I switched to https with the plug in downloaded the plug Really Simple SSL and have issues with Mixed content. I’ve downloaded the plug in as indicated and have ended trying all the available options up until capture all, but I’m afraid that it is not working. Any ideas why, or any possible solutions? Thank you.

  12. Advait says

    Great article, it helped me fix our mixed content issue. Recently we switched our WordPress site to https. I had to use the plugin on ”Capture” level before our mixed content errors got fixed. Is that the end of the issue? Or do I need to research and fix the underlying issues that created the mixed content problem in the first place?

    Thanks again for a very useful article.

    • Colin says

      I pointed that out after yours and they deleted it as they can’t answer that question.

      They also have mix content issues and won’t fix them…..why?

Lämna ett svar

Tack för att du väljer att lämna en kommentar. Tänk på att alla kommentarer modereras enligt våra policy för kommentarer, och din e-postadress kommer INTE att publiceras. Vänligen använd INTE nyckelord i namnfältet. Låt oss ha en personlig och meningsfull konversation.