简体   繁体   English

将内联脚本添加到WordPress页面上后,Visual Composer无法加载

[英]Visual Composer doesn't load after inline script was added to the page on WordPress

how is it going? 最近好吗?

I'm having some trouble with the visual composer for WordPress... I was testing a widget, so I inserted some HTML and JS on an element inside the VC on the Home, and Saved the Page. 我在使用WordPress的视觉作曲器时遇到了一些麻烦...我正在测试一个小部件,因此我在首页VC内的某个元素上插入了一些HTML和JS,然后保存了页面。 Everything look good on the output, but when I try to edit the page again through the Admin panel, I get errors refering to the Script previously added, and the VC does not load. 一切在输出上看起来都不错,但是当我尝试通过“管理”面板再次编辑页面时,引用先前添加的脚本会出现错误,并且不会加载VC。

在此处输入图片说明

So, I can't open the element to remove the Script, and I can't seem to find this content anywhere on the database (searched wp_posts), so I can do it manually. 因此,我无法打开该元素以删除脚本,并且似乎无法在数据库的任何位置(搜索到的wp_posts)找到此内容,因此可以手动进行操作。

Anyone have ideas on how to possibly solve this? 有人对如何解决这个问题有想法吗?

I reeally didn't want to overwrite my database just to fix one page. 我完全不想仅仅为了修复一页而覆盖数据库。

Thanks in advance. 提前致谢。

Ok, so my husband got it... What he did was this: 好吧,所以我丈夫明白了...他所做的是:

  1. Inspect the element of the Visual Composer disabled textarea, remove the class disabled. 检查Visual Composer禁用的textarea的元素,删除禁用的类。
  2. The content showed up, not configured, but still. 内容显示出来了,没有配置,但是仍然存在。
  3. Then, find the real textarea behind tinyMCE and its content. 然后,找到tinyMCE及其内容背后的实际文本区域。 Beware that the content is all encoded, so you will not find any " or < or any HTML tags, so you better search for key words. 请注意,内容都是经过编码的,因此您将找不到任何“或<或任何HTML标记,因此最好搜索关键词。
  4. Remove the problematic part of the code, in my case, the script tag and Publish the page. 在我的例子中,删除代码中有问题的部分,然后删除脚本标签,然后发布页面。

Problem solved. 问题解决了。 Without overwriting all database. 无需覆盖所有数据库。

Thank you all for trying to help. 谢谢大家的帮助。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual composer 不加载并给出 TypeError: _.template(...).trim is not a function - Visual composer doesn't load and gives TypeError: _.template(…).trim is not a function Safari和Chrome无法动态评估添加<script> tag at page load - Safari and Chrome doesn't evaluate dynamically added <script> tag at page load Wordpress - 为什么如果我将 js 脚本放在页面顶部它不会加载? - Wordpress - Why if I put the js script at the top of the page it doesn't load? 内联条件不加载脚本 reactjs nextjs 应用程序 - Inline condition doesn't load script reactjs nextjs app Ajax响应后脚本未加载 - script doesn't load after ajax response 在每页上加载Visual Composer(AJAX安装程序) - Load Visual Composer on Every Page (AJAX Setup) 为什么Wordpress中Visual Composer页面构建器的Raw js元素中的window.location.href不 - why isn't window.location.href in Visual composer page builder's Raw js element in Wordpress 通过在头部附加脚本加载页面后加载Google Analytics并不总是有效 - Loading Google Analytics after page load by appending script in head doesn't always work 添加PHP脚本后输入值不变 - Input value doesn't change after PHP script is added 加载jQuery内联脚本而不依赖于WordPress - load jquery inline script without dependency in wordpress
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM