今天升级了网站,打开 Ad inserter 插件(这可是一个好的免费的添加广告软件),进入插件,准备设置广告, 出现:page may not be loaded properly ,Check blocking software that may block CSS,Javascript or image files(我还是翻译下:页面导入不正确,可能是软件阻止了 CSS,Javascript or image files 等的加载)

咋办?

一、进入官方网站。https://adinserter.pro/documentation

二、原因分析

找到相关的文献,https://adinserter.pro/documentation/troubleshooting

找到:Settings Page Blocked,处理办法如下。

首先要检查的是浏览器中的 Javascript 控制台。错误是可能出问题的第一个指标。一些主题喜欢在 javascript 文件中添加 async 或 defer 标记。这会更改广告插入器所需脚本的执行顺序,您可能会收到错误或页面部分加载。您的主题或其他插件不应修改广告插入程序生成的代码!大多数使用的脚本都是从页面底部加载的,脚本执行的顺序对于代码正常工作很重要。

确保您的主题没有向 javascript 文件添加异步或延迟标签。

广告拦截器和安全性插件也可能会屏蔽广告插入器设置页面。如果看不到代码块的常规标签或没有保存按钮,请确保您已禁用广告阻止或白名单的广告插入程序设置页面。

当由于某些 Javascript 错误而导致无法正确加载设置页面时,也会收到此警告。在浏览器中检查控制台。

三、具体处理办法

(一) 查找原因

Chrome 谷歌浏览器

To open the console in Chrome, use this keyboard shortcut: Cmd + Option + J (on a Mac) or Cmd +Shift +J (on Windows).


As an alternative, you could right-click on the webpage and click "Inspect," and the developers window will appear. Click the "Console" tab in that window.

Firefox 浏览器

To open the console in Firefox, use this keyboard shortcut: Cmd + Option +K (on a Mac) or Cmd +Shift +J (on Windows).

As an alternative, you could right-click on the webpage and click "Inspect Element," and the developers window will appear. Click the "Console" tab in that window.

Attempt to perform the action that is causing you trouble, and take a full screenshot of the Console.

总结:在进入后台页面,找到 adinserter , 点 settings ,然后在空白处点右键,选择 “检查” 即可进入

四、原因找到并解决之

切换到 Console ,可以看到红色字体,这就是提示,有个 AMP.js 说明与网站安装的 Accelerated Mobile Pages 插件相关,禁止 Accelerated Mobile Pages 插件后,然后再点 Ad inserter 插件的设置,完美解决,最后我到 Accelerated Mobile Pages 插件一看, 此软件还不兼容最新 5.5 版 wordpress ,估计几天后就可以解决这个问题了

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注