如何防止代码在WordPress中消失? [英] How to prevent the code disappearing in WordPress?

查看:70
本文介绍了如何防止代码在WordPress中消失?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在WordPress中编辑页面时切换到文本和视觉然后文本时HTML代码消失。



我想要使用的代码:

The HTML code disappears when I switch to text and visual and then text while editing the page in WordPress.

The code that I want to use:

<div class="col-md-12">
<div class="col-md-4 text-center"></div>
<div class="col-md-4 text-center"></div>
<div class="col-md-4 text-center"></div>
</div>







如下所示:




It becomes like below:

<div class="col-md-12"></div>

推荐答案

选择文本模式。包裹代码标签,如...



[code language =html]

所有代码都在这里

[/ code]
Select text mode. Wrap this around code tags like...

[code language="html"]
All code goes here
[/code]


这篇关于如何防止代码在WordPress中消失?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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