当我在网页上找到帖子时出现蜡笔荧光笔错误(Wordpress) [英] Crayon Highlighter error when i got the post on my webpage(Wordpress)

查看:81
本文介绍了当我在网页上找到帖子时出现蜡笔荧光笔错误(Wordpress)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我构建了一个wordpress插件,但是有问题.

I build a wordpress plugin but I have a problem.

当我同时使用两个wordpress插件(Mine& Crayon)时,我的代码将覆盖crayon的代码并对其进行编码. 这是我关注的消息[crayon-546b7a833e38a220649795/]而不是主要帖子. 我期待着您的回音.

When I used both wordpress plugin (Mine & Crayon), my code override crayon´s code and encode it post. This is the message i watch [crayon-546b7a833e38a220649795/] instead of the main post. I´m looking forward to hearing from you.!

推荐答案

在wordpress支持网站上有一个针对蜡笔插件的未报告问题:

There is an unspecified reported issue on the wordpress support site for the crayon plugin: https://wordpress.org/support/topic/plugin-crayon-syntax-highlighter-not-working-in-category-view

基本上,尝试加载插件的最新版本,然后手动更改一些插件默认值:

Basically, try loading the newest version of the plugin, then manually change some plugin defaults:

取消选中仅在需要时尝试加载Crayon的CSS和JavaScript."

untick " Attempt to load Crayon's CSS and JavaScript only when needed."

勾选禁用可能包含The Loop的页面模板的入队".

tick "Disable enqueuing for page templates that may contain The Loop."

取消选中仅从主要WordPress查询中加载蜡笔"

untick "Load Crayons only from the main WordPress query"

这可能不是您的问题,但至少它会为您提供进一步解决问题的更好位置.

This may not be your issue, but at the very least it will provide a better place for you to troubleshoot further.

完成此操作后,如果仍然遇到问题,可以尝试本文,本文概述了在创建自己的自定义简码时避免插件冲突的步骤. http://www.wpexplorer.com/avoid-theme-plugin-conflicts/

Once that's done, if you're still encountering issues, you can try this article, which outlines the steps to avoid plugin conflicts when creating your own custom shortcodes. http://www.wpexplorer.com/avoid-theme-plugin-conflicts/

这篇关于当我在网页上找到帖子时出现蜡笔荧光笔错误(Wordpress)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆