最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

theme development - Find the source file causing a Mixed Content warning

programmeradmin1浏览0评论

Google Chrome has flagged a client's Wordpress site as Not Secure. So we are trying to remove a Mixed Content warning that we get using the Inspect feature of the browser.

Mixed Content: The page at '/' was loaded over HTTPS, but requested an insecure image '.png'. This content should also be served over HTTPS.

When we contacted the company who has built the template, they told us to refer to the template code's CSS and located a file in which the following definition was made:

/*********************************************
****************** LOGO **********************
**********************************************/

.site-header .logo {
    position: relative;
    margin:0 auto;
    width: 140px;
    height: 65px;
}

.site-header .logo_image {
    width: 100%;
    height: 100%;
    z-index: 999;
    background: url('../../images/logo.png') no-repeat left;
    background-size: contain;
}

Now, the resource URL that is causing the Mixed Content warning does not have the name logo.png but .png (of course I have changed the real names of the files) as stated in the warning message above.

Moreover, I found a few other files in the CSS code's header definition that contains the logo.png file.

This has not removed the warning.

So my question is, where, in the code can I find the real source of this file that is, for some reason, still under HTTP?

I need to add that we have cleared the cache on both Wordpress and the browser to no avail.

发布评论

评论列表(0)

  1. 暂无评论